Support Questions
Find answers, ask questions, and share your expertise

No ranger access logs Ranger HDFS/HIVE Plugins, os access_log file getting updates.

Solved Go to solution

No ranger access logs Ranger HDFS/HIVE Plugins, os access_log file getting updates.

Explorer

ENV: Ambari 2.1.2, Ranger:0.5.0.2.3

HDFS/HIVE plugin configured, tried Audit logs to HDFS and changed to DB(Oracle 12c)

/var/log/ranger/admin/xa_portal.log reports following error.

2015-11-06 15:30:05,987 [http-bio-6080-exec-3] INFO  org.apache.ranger.common.RESTErrorUtil (RESTErrorUtil.java:311) - Operation error. response=VXResponse={org.apache.ranger.view.VXResponse@2a7e763statusCode={1} msgDesc={Error running query} messageList={[VXMessage={org.apache.ranger.view.VXMessage@6d64c8e4name={ERROR_SYSTEM} rbKey={xa.error.system} message={System Error. Please try later.} objectId={null} fieldName={null} }]} }
javax.ws.rs.WebApplicationException
1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

Re: No ranger access logs Ranger HDFS/HIVE Plugins, os access_log file getting updates.

@skonduru@hortonworks.com

Please add more information from the logs.

check ranger.audit.source.type in Ranger and make sure its set to the method that you want to choose.

View solution in original post

5 REPLIES 5
Highlighted

Re: No ranger access logs Ranger HDFS/HIVE Plugins, os access_log file getting updates.

@skonduru@hortonworks.com

Please add more information from the logs.

check ranger.audit.source.type in Ranger and make sure its set to the method that you want to choose.

View solution in original post

Highlighted

Re: No ranger access logs Ranger HDFS/HIVE Plugins, os access_log file getting updates.

Explorer

Thank you Neeraj, after change of ranger.audit.source.type from solr to db, ranger portal sees the logs.

Highlighted

Re: No ranger access logs Ranger HDFS/HIVE Plugins, os access_log file getting updates.

Highlighted

Re: No ranger access logs Ranger HDFS/HIVE Plugins, os access_log file getting updates.

Explorer

Audit logging happens in the plugin. Please review HS2 and NN logs for cause.

Highlighted

Re: No ranger access logs Ranger HDFS/HIVE Plugins, os access_log file getting updates.

Explorer

Thank you Al.

xa_portal.log shows following error, look like ranger portal expecting ranger_audits in solar, which we didn't installed. Customer opened support case, waiting for support response.

2015-11-09 13:30:15,027 [http-bio-6080-exec-6] ERROR org.apache.ranger.solr.SolrUtil (SolrUtil.java:79) - Error from Solr server. org.apache.solr.client.solrj.SolrServerException: IOException occured when talking to server at: http://solr_host:6083/solr/ranger_audits at org.apache.solr.client.solrj.impl.HttpSolrClient.executeMethod(HttpSolrClient.java:572) at