Akila,

 

As the following warning message indicates, can you try after setting 
‘java.security.auth.login.config’ in Atlas server startup command line? This 
can be specified by setting ATLAS_OPTS in atlas-env.sh file.

 

2021-03-11 15:15:07,582 WARN  - [main:] ~ 
org.apache.solr.client.solrj.impl.Krb5HttpClientBuilder is configured without 
specifying system property 'java.security.auth.login.config'
 (Krb5HttpClientBuilder:142)


 

Hope this helps.

 

Madhan

 

 

 

From: Akila Wajirasena <[email protected]>
Reply-To: <[email protected]>
Date: Thursday, March 11, 2021 at 7:41 AM
To: <[email protected]>
Subject: Enabling Kerberos is Atlas

 

 

Hi,

 

I am trying to enable Kerberos in Atlas. I have already configured both atlas 
and Solr that comes with Atlas to use kerberos. 

 

However when I start Atlas I get the following errors and warnings;

 

2021-03-11 15:15:07,571 DEBUG - [main:] ~ End of HBase config key=value pairs 
(HBaseStoreManager:328)
2021-03-11 15:15:07,573 INFO  - [main:] ~ Configuring index [search] 
(Backend:426)
2021-03-11 15:15:07,582 WARN  - [main:] ~ 
org.apache.solr.client.solrj.impl.Krb5HttpClientBuilder is configured without 
specifying system property 'java.security.auth.login.config'
 (Krb5HttpClientBuilder:142)
2021-03-11 15:15:07,583 DEBUG - [main:] ~ Kerberos is NOT enabled. 
(Solr6Index:204)
2021-03-11 15:15:07,583 DEBUG - [main:] ~ KERBEROS_ENABLED name is 
kerberos-enabled and it is  an option. (Solr6Index:205)
2021-03-11 15:15:07,583 DEBUG - [main:] ~ KERBEROS_ENABLED type is MASKABLE 
(Solr6Index:206)
2021-03-11 15:15:07,584 DEBUG - [main:] ~ HttpClientBuilder = 
org.apache.solr.client.solrj.impl.SolrHttpClientBuilder@7db47323 
(Solr6Index:269)
java.lang.Exception
        at 
org.janusgraph.diskstorage.solr.Solr6Index.createSolrClient(Solr6Index.java:269)
        at 
org.janusgraph.diskstorage.solr.Solr6Index.<init>(Solr6Index.java:209)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at 
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
        at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
        at 
org.janusgraph.util.system.ConfigurationUtil.instantiate(ConfigurationUtil.java:58)
        at 
org.janusgraph.diskstorage.Backend.getImplementationClass(Backend.java:440)
        at org.janusgraph.diskstorage.Backend.getIndexes(Backend.java:427)
        at org.janusgraph.diskstorage.Backend.<init>(Backend.java:150)
        at 
org.janusgraph.graphdb.configuration.GraphDatabaseConfiguration.getBackend(GraphDatabaseConfiguration.java:1359)
        at 
org.janusgraph.graphdb.database.StandardJanusGraph.<init>(StandardJanusGraph.java:146)
        at 
org.janusgraph.core.JanusGraphFactory.open(JanusGraphFactory.java:161)
        at 
org.janusgraph.core.JanusGraphFactory.open(JanusGraphFactory.java:132)
        at 
org.janusgraph.core.JanusGraphFactory.open(JanusGraphFactory.java:112)
        at 
org.apache.atlas.repository.graphdb.janus.AtlasJanusGraphDatabase.initJanusGraph(AtlasJanusGraphDatabase.java:182)
        at 
org.apache.atlas.repository.graphdb.janus.AtlasJanusGraphDatabase.getGraphInstance(AtlasJanusGraphDatabase.java:169)
        at 
org.apache.atlas.repository.graphdb.janus.AtlasJanusGraphDatabase.getGraph(AtlasJanusGraphDatabase.java:276)
        at 
org.apache.atlas.repository.graph.AtlasGraphProvider.getGraphInstance(AtlasGraphProvider.java:52)
        at 
org.apache.atlas.repository.graph.AtlasGraphProvider.get(AtlasGraphProvider.java:98)
        at 
org.apache.atlas.repository.graph.AtlasGraphProvider$$EnhancerBySpringCGLIB$$3c09ddb2.CGLIB$get$1(<generated>)
        at 
org.apache.atlas.repository.graph.AtlasGraphProvider$$EnhancerBySpringCGLIB$$3c09ddb2$$FastClassBySpringCGLIB$$93bae203.invoke(<generated>)
        at 
org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228)
        at 
org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:358)
        at 
org.apache.atlas.repository.graph.AtlasGraphProvider$$EnhancerBySpringCGLIB$$3c09ddb2.get(<generated>)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)


===============================================

 

2021-03-11 15:15:39,921 DEBUG - [main:] ~ Challenge for Digest authentication 
scheme not available (AuthenticationStrategyImpl:204)
2021-03-11 15:15:39,922 DEBUG - [main:] ~ Challenge for Basic authentication 
scheme not available (AuthenticationStrategyImpl:204)
2021-03-11 15:15:39,932 WARN  - [main:] ~ Cookie rejected [hadoop.auth="", 
version:0, domain:{172.25.30.150}, path:/, expiry:Thu Jan 01 01:00:00 GMT 1970] 
Illegal 'domain' attribute "{172.25.30.150}". Domain of origin: "172.25.30.150" 
(ResponseProcessCookies:123)
2021-03-11 15:15:39,937 DEBUG - [main:] ~ Connection [id: 0][route: 
{}->http://172.25.30.150:9838][state: class 
org.apache.solr.client.solrj.impl.HttpSolrClient] can be kept alive 
indefinitely (PoolingHttpClientConnectionManager:341)
2021-03-11 15:15:39,937 DEBUG - [main:] ~ http-outgoing-0: set socket timeout 
to 0 (LoggingManagedHttpClientConnection:88)
2021-03-11 15:15:39,938 DEBUG - [main:] ~ Connection released: [id: 0][route: 
{}->http://172.25.30.150:9838][state: class 
org.apache.solr.client.solrj.impl.HttpSolrClient][total kept alive: 1; route 
allocated: 1 of 10000; total allocated: 1 of 10000] 
(PoolingHttpClientConnectionManager:348)
2021-03-11 15:15:39,939 ERROR - [main:] ~ GraphBackedSearchIndexer.initialize() 
failed (GraphBackedSearchIndexer:367)
org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException: Error 
from server at http://172.25.30.150:9838/solr: Expected mime type 
application/octet-stream but got text/html. <html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<title>Error 401 Authentication required</title>
</head>
<body><h2>HTTP ERROR 401</h2>
<p>Problem accessing /solr/admin/collections. Reason:
<pre>    Authentication required</pre></p>
</body>
</html>

        at 
org.apache.solr.client.solrj.impl.HttpSolrClient.executeMethod(HttpSolrClient.java:591)
        at 
org.apache.solr.client.solrj.impl.HttpSolrClient.request(HttpSolrClient.java:253)
        at 
org.apache.solr.client.solrj.impl.HttpSolrClient.request(HttpSolrClient.java:242)
        at 
org.apache.solr.client.solrj.impl.LBHttpSolrClient.doRequest(LBHttpSolrClient.java:483)
        at 
org.apache.solr.client.solrj.impl.LBHttpSolrClient.request(LBHttpSolrClient.java:413)
        at 
org.apache.solr.client.solrj.impl.CloudSolrClient.sendRequest(CloudSolrClient.java:1121)
        at 
org.apache.solr.client.solrj.impl.CloudSolrClient.requestWithRetryOnStaleState(CloudSolrClient.java:862)
        at 
org.apache.solr.client.solrj.impl.CloudSolrClient.request(CloudSolrClient.java:793)
        at 
org.apache.solr.client.solrj.SolrRequest.process(SolrRequest.java:178)
        at 
org.apache.solr.client.solrj.SolrRequest.process(SolrRequest.java:195)
        at 
org.janusgraph.diskstorage.solr.Solr6Index.createCollectionIfNotExists(Solr6Index.java:1182)
        at 
org.janusgraph.diskstorage.solr.Solr6Index.register(Solr6Index.java:376)
        at 
org.janusgraph.diskstorage.indexing.IndexTransaction.register(IndexTransaction.java:96)
        at 
org.janusgraph.graphdb.database.IndexSerializer.register(IndexSerializer.java:108)
        at 
org.janusgraph.graphdb.database.management.ManagementSystem.addIndexKey(ManagementSystem.java:657)
        at 
org.apache.atlas.repository.graphdb.janus.AtlasJanusGraphManagement.addMixedIndex(AtlasJanusGraphManagement.java:204)

Could you please give me a hint on how to fix this?

Thanks,
Akila 



Reply via email to