Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created 04-20-2016 06:04 PM
I am trying to access solr UI for ranger audit logs on HDP sandbox. it seems not be be up; however, the audits are shown in real time on ranger UI. How do I get access to solr UI for ranger audit logs. The link in sandbox is http://localhost:6083/solr/ranger_audits but it is not accessible.
Created 04-20-2016 06:44 PM
I believe in HDP sandbox Ranger audits are going to Mysql (not Solr).
To change audits to go to Solr you would need to;
1. Start Solr and create the ranger_audits collection. The steps for this would differ whether you want Solr to run in standalone or cloud mode
Standalone mode:
Cloud mode:
2. change the ranger.audit.source.type to solr (from db) under Ambari > Ranger > Configs
3. Set appropriate property to point Ranger to Solr
e.g. in Solr standalone mode, set ranger.audit.solr.urls = http://(your solr host fqdn):6083/solr/ranger_audits
in Cloud mode, instead of providing url you would set ranger.audit.solr.zookeepers = Zk list e.g. ip-172-30-0-180.us-west-2.compute.internal:2181,ip-172-30-0-182.us-west-2.compute.internal:2181,ip-172-30-0-181.us-west-2.compute.internal:2181/ranger_audits
4. Restart Ranger service via Ambari
Created 04-20-2016 06:04 PM
Is Ranger's audit source solr or db ? Check your config in Ambari
Created 04-20-2016 06:15 PM
You can also check that port 6083 is configured in the port forwarding setting to access http://localhost:6083/solr/ranger_audits.
For Audit not being in Ranger UI you need to check what is configured for ranger.audit.source.type in ranger config. It should be solr.
Created 04-20-2016 06:44 PM
I believe in HDP sandbox Ranger audits are going to Mysql (not Solr).
To change audits to go to Solr you would need to;
1. Start Solr and create the ranger_audits collection. The steps for this would differ whether you want Solr to run in standalone or cloud mode
Standalone mode:
Cloud mode:
2. change the ranger.audit.source.type to solr (from db) under Ambari > Ranger > Configs
3. Set appropriate property to point Ranger to Solr
e.g. in Solr standalone mode, set ranger.audit.solr.urls = http://(your solr host fqdn):6083/solr/ranger_audits
in Cloud mode, instead of providing url you would set ranger.audit.solr.zookeepers = Zk list e.g. ip-172-30-0-180.us-west-2.compute.internal:2181,ip-172-30-0-182.us-west-2.compute.internal:2181,ip-172-30-0-181.us-west-2.compute.internal:2181/ranger_audits
4. Restart Ranger service via Ambari