I see the following errors: 2015-12-01 02:56:30,065 FATAL org.apache.ranger.audit.destination.SolrAuditDestination: Can't connect to Solr server. URL=[http://192.168.23.105:6083/solr/ranger_audits] java.lang.NoClassDefFoundError: org/apache/http/entity/mime/content/ContentBody at org.apache.solr.client.solrj.impl.LBHttpSolrClient.makeSolrClient(LBHttpSolrClient.java:265)
I had similar issues previously with incompatible http-client and http-mime jar files. I am not sure whether you are hitting the sample. Can you check the hadoop lib folders for *http*.jar files? Mine is httpclient-4.2.5.jar and we package httpmime-4.2.5.jar with HDFS plugin. Thanks Bosco From: Hafiz Mujadid <[email protected]> Reply-To: <[email protected]> Date: Monday, November 30, 2015 at 2:22 PM To: <[email protected]> Subject: Re: access audit logs are not being shown on ranger ui Hi Bosco, Attached is the content of namenode log file. Solr is working fine, i checked from the web UI Also /var/log/hadoop/hdfs/audit/solr/spool contains following contents: archive index_batch_batch.solr_hdfs.json index_batch_batch.solr_hdfs_closed.json and all of these files and folders are empty Hi Madhan, I have used same URL but still it does not work. On Tue, Dec 1, 2015 at 12:26 AM, Madhan Neethiraj <[email protected]> wrote: Hafiz, Different Solr URLs are specified in configuration of HDFS plugin and Ranger Admin. Can you please review and update such that they both point to the same Solr instance? properties for hdfs plugin: XAAUDIT.SOLR.URL=http://192.168.23.105:6083/solr/ranger_audits properties in ranger-admin: audit_solr_urls=http://122.129.79.70:6083/solr/ranger_audits Madhan From: Don Bosco Durai <[email protected]> Reply-To: "[email protected]" <[email protected]> Date: Monday, November 30, 2015 at 10:48 AM To: "[email protected]" <[email protected]> Subject: Re: access audit logs are not being shown on ranger ui The properties seems correct. Best way to test is to : Check the HDFS logs. Check Solr from web interface (use the same url you configured) See if there are any unprocessed files in /var/log/hadoop/hdfs/audit/solr/spool Bosco From: Hafiz Mujadid <[email protected]> Reply-To: <[email protected]> Date: Monday, November 30, 2015 at 7:22 AM To: <[email protected]> Subject: access audit logs are not being shown on ranger ui hi, I have enabled ranger audits in solr, but access audits are not being shown. properties for hdfs plugin XAAUDIT.SOLR.ENABLE=true XAAUDIT.SOLR.URL=http://192.168.23.105:6083/solr/ranger_audits XAAUDIT.SOLR.USER=ranger_solr XAAUDIT.SOLR.PASSWORD=NONE XAAUDIT.SOLR.ZOOKEEPER=NONE XAAUDIT.SOLR.FILE_SPOOL_DIR=/var/log/hadoop/hdfs/audit/solr/spool properties in ranger-admin audit_store=solr audit_solr_urls=http://122.129.79.70:6083/solr/ranger_audits audit_solr_user=ranger_solr audit_solr_password=NONE audit_solr_zookeepers= But no audits logs are shown in ranger-admin how can i check the issue ? thanks -- Regards: HAFIZ MUJADID
