Support Questions

Find answers, ask questions, and share your expertise

RANGER trying to use SOLR

avatar
Super Collaborator

I am getting an error when accessing the AUDIT tab "unable to connect to audit store" . When I looked at the xa_portal.log file I see the following errors ,which tells me its trying to use SOLR which I have disabled , please see the screenshot and log below :

2016-12-01 17:47:08,845 [http-bio-6080-exec-2] FATAL org.apache.ranger.solr.SolrMgr (SolrMgr.java:128) - Solr ZKHosts and URL for Audit are empty. Please set property ranger.audit.solr.zookeepers or ranger.audit.solr.urls
2016-12-01 17:47:08,845 [http-bio-6080-exec-2] WARN  org.apache.ranger.solr.SolrAccessAuditsService (SolrAccessAuditsService.java:129) - Solr client is null, so not running the query.
2016-12-01 17:47:08,845 [http-bio-6080-exec-2] INFO  org.apache.ranger.common.RESTErrorUtil (RESTErrorUtil.java:65) - Request failed. SessionId=297, loginId=admin, logMessage=Error connecting to search engine
javax

as you see the audit to SOLR is turned off

10033-jau4a.png

1 ACCEPTED SOLUTION

avatar
Super Guru

@Sami Ahmad

The audit tab in Ranger uses Solr to perform the queries and display audit events. The Range audit UI can not query the audit logs on HDFS. HDFS is only for longer term storage of the audit logs. If you want to view audit data via the UI, you need to eanble the Audit to Solr slider.

Turning off the Audit to Solr option just turns off sending of the logs to Solr. The Ranger admin UI still expects Solr for the audit display to work properly.

View solution in original post

2 REPLIES 2

avatar
Super Guru

@Sami Ahmad

The audit tab in Ranger uses Solr to perform the queries and display audit events. The Range audit UI can not query the audit logs on HDFS. HDFS is only for longer term storage of the audit logs. If you want to view audit data via the UI, you need to eanble the Audit to Solr slider.

Turning off the Audit to Solr option just turns off sending of the logs to Solr. The Ranger admin UI still expects Solr for the audit display to work properly.

avatar
Super Collaborator