Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Please see the Cloudera blog for information on the Cloudera Response to CVE-2021-4428

Ranger Atlas plugin Test connection throws " {"msgDesc":"Authentication failed."}" in xa_portal.log

Explorer

Hello Team,

Need ur help to fix Ranger Atlas plugin Test Connection failure.

Ranger Integrated with Openldap.

Atlas Authentication happens through Knox SSO.

Knox SSO integrated with Openldap.

HDP 2.6.3

Ambari 2.6

On Ranger UI while clicking on Atlas plugin Test connection throws below error on UI.

Connection Failed.
Unable to retrieve any Atlas Terms using given parameters. You can still save the repository and start creating policies, but you would not be able to use autocomplete for resource names. Check ranger_admin.log for more info.

Ranger Log i.e. xa_portal.log throws below error.

2018-02-06 09:52:54,133 [timed-executor-pool-0] INFO org.apache.ranger.plugin.client.BaseClient (BaseClient.java:119) - Init Login: security not enabled, using username 2018-02-06 09:52:55,319 [timed-executor-pool-0] INFO apache.ranger.services.atlas.client.AtlasClient$1$1 (AtlasClient.java:156) - getTermList():response.getStatus()= 401 for URL http://vijayhdf-1.novalocal:21000/j_spring_security_check, so returning null list 2018-02-06 09:52:55,319 [timed-executor-pool-0] INFO apache.ranger.services.atlas.client.AtlasClient$1$1 (AtlasClient.java:157) - {"msgDesc":"Authentication failed."}

Kindly help me how to fix the same?

- Vijay Mishra

7 REPLIES 7

Expert Contributor
@Vijay Mishra

Can you provide Atlas application logs error and when you try to Testconnection from Ranger admin UI and also can verify the username and password at Config Properties in Ranger service created for atlas

Explorer

@Nixon Rodrigues,

sorry for delay in reponse.

Attached logs of application.log from atlas.

Atlas integrated with openldap.

Test connection from ranger UI for atlas says HTTP 503 error.

Kindly suggest.

- Vijay Mishraapplication.zip

Expert Contributor

@Vijay Mishra

Based on logs provided Atlas is not configured properly, the tables required in hbase is missing

Caused by: org.apache.hadoop.hbase.TableNotFoundException: atlas_titan

Explorer

@Nixon Rodrigues,

Yes, Restarting hbase followed by restart of atlas fixed the Atlas UI issue. Atlas UI accessible now.

There is one more problem i am getting in atlas application.log, Below pasted the same. Kindly check and suggest what it is for?

2018-02-13 11:46:20,860 WARN - [NotificationHookConsumer thread-0:] ~ Error while fetching metadata with correlation id 23664 : {ATLAS_HOOK=UNKNOWN_TOPIC_OR_PARTITION} (NetworkClient:600) 2018-02-13 11:46:20,961 WARN - [NotificationHookConsumer thread-0:] ~ Error while fetching metadata with correlation id 23665 : {ATLAS_HOOK=UNKNOWN_TOPIC_OR_PARTITION} (NetworkClient:600) 2018-02-13 11:46:21,062 WARN - [NotificationHookConsumer thread-0:] ~ Error while fetching metadata with correlation id 23666 : {ATLAS_HOOK=UNKNOWN_TOPIC_OR_PARTITION} (NetworkClient:600) 2018-02-13 11:46:21,163 WARN - [NotificationHookConsumer thread-0:] ~ Error while fetching metadata with correlation id 23667 : {ATLAS_HOOK=UNKNOWN_TOPIC_OR_PARTITION} (NetworkClient:600) 2018-02-13 11:46:21,264 WARN - [NotificationHookConsumer thread-0:] ~ Error while fetching metadata with correlation id 23668 : {ATLAS_HOOK=UNKNOWN_TOPIC_OR_PARTITION} (NetworkClient:600) 2018-02-13 11:46:21,365 WARN - [NotificationHookConsumer thread-0:] ~ Error while fetching metadata with correlation id 23669 : {ATLAS_HOOK=UNKNOWN_TOPIC_OR_PARTITION} (NetworkClient:600) 2018-02-13 11:46:21,466 WARN - [NotificationHookConsumer thread-0:] ~ Error while fetching metadata with correlation id 23670 : {ATLAS_HOOK=UNKNOWN_TOPIC_OR_PARTITION} (NetworkClient:600)

- Vijay Mishra

Expert Contributor

@Vijay Mishra,

Whether the setup is kerberized ? is Kafka-Ranger plugin active ?

Explorer

@Nixon Rodrigues,

As soon as i enable ranger plugin for Atlas errors started occuring.

Yes i have enabled kerberos on cluster 2 days back.

- Vijay Mishra

Expert Contributor

@Vijay Mishra

please check if valid policies are present for atlas_topic in ranger for kafka plugin