Hi Rohit,
    There are two set of properties we are talking about to enable audit to
solr.

Part 1 (Ranger Admin side):

   - These properties can be provided in the install.properties file.
   Please note that the setup.sh needs to be run again for the properties to
   take effect


   - Other option is to put the following properties in
   ranger-admin-site.xml in the conf/ (*btw, this is what setup.sh will
   eventually do*)


   - Please find below the mapping of properties between the two :
   *ranger-admin-site.xml                install.properties *
   ranger.audit.source.type                audit_store
   ranger.audit.solr.urls                      audit_solr_urls
   ranger.solr.audit.user                     audit_solr_user
   ranger.solr.audit.user.password     audit_solr_password
   ranger.audit.solr.zookeepers          audit_solr_zookeepers


   - Make sure the ranger.audit.source.type is set to "solr" for the Ranger
   Admin to fetch audits from SOLR and show them on UI


Part 2 (Plugin side) :

   - These properties need to be provided on the plugin side.
   - XAAUDIT.SOLR.IS_ENABLEDtrue XAAUDIT.SOLR.ENABLEtrue XAAUDIT.SOLR.URL

   http://solr_host:6083/solr/ranger_audits
   XAAUDIT.SOLR.USERranger_solr
    XAAUDIT.SOLR.PASSWORDNONE
XAAUDIT.SOLR.FILE_SPOOL_DIRvar/log/hadoop/hdfs/audit/solr/spool



HTH, Thanks.


On Mon, Apr 11, 2016 at 1:11 PM, rohit sinha <[email protected]>
wrote:

> Hello,
>
> I followed the installation documentation (
>
> https://cwiki.apache.org/confluence/display/RANGER/Install+and+Configure+Solr+for+Ranger+Audits+-+Apache+Ranger+0.5
> )
> to install Solr Standalone and have configurered ranger-admind with the
> solr url. The config also have username and password properties. What will
> be the values of these field ? I can access the Solr web ui without any
> login information so I am guessing there is no authentication for it.
>
> Also, the documentation here (
>
> https://cwiki.apache.org/confluence/display/RANGER/Apache+Ranger+0.5.0+Installation#ApacheRanger0.5.0Installation-EnablingAuditLoggingToSOLR
> )
> describes how to enable solr auditing for a plugin through
> install.properties configuration. I don't have this file for my service. I
> have one look up jar which is running inside ranger and another
> authorization jar running inside my service and the security.xml, audit.xml
> files in the classpath of my service.
>
> Where should I define these values ?
>
> PROPERTY
> VALUE
> XAAUDIT.SOLR.IS_ENABLED true
> XAAUDIT.SOLR.ENABLE true
> XAAUDIT.SOLR.URL
>
> http://solr_host:6083/solr/ranger_audits
> XAAUDIT.SOLR.USER ranger_solr
> XAAUDIT.SOLR.PASSWORD NONE
> XAAUDIT.SOLR.FILE_SPOOL_DIR var/log/hadoop/hdfs/audit/solr/spool
>
> Currently, I don't see any documents in my Solr installation under
> ranger_audits.
>
> Any help will be appreciated.
>
> Thanks,
> Rohit Sinha
>



-- 
Regards,
Gautam.

Reply via email to