Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Apache Ranger "No Access Audit found!" but API returning 200 response and Solr is up running

Highlighted

Apache Ranger "No Access Audit found!" but API returning 200 response and Solr is up running

New Contributor

In my Docker Image, I ran Ranger and solr as standalone application successfully. In Ranger I am able to use everything except audit logs

In Ranger, if I go to "Audit" and "Access" section, then it says No Access Audit found!
If I check network tab, then given path /service/assets/accessAudit gives me 200 status with response:

<vxAccessAuditList>
<pageSize>200</pageSize>
<resultSize>0</resultSize>
<startIndex>0</startIndex>
<totalCount>0</totalCount>
</vxAccessAuditList>

Now my question is, why resultSize is 0, how can I test if my audits are getting generated properly
I used this doc: https://cwiki.apache.org/confluence/display/RANGER/Install+and+Configure+Solr+for+Ranger+Audits+-+Ap...

And added all configs in install.properties file.
Also in config I have specified:

http://localhost:6083/solr/ranger_audits
as solr url but if I try to open it in my browser (replacing localhost with my instance ip)
Then it gives 404 error

HTTP ERROR 404

Problem accessing /solr/ranger_audits. Reason:

    Not Found


Any help is much appreciated
Thanks

Don't have an account?
Coming from Hortonworks? Activate your account here