Skip to main content
sunera
Gold ⭐️
Oct 23, 2022 12:24 PM UTC
Solved

Audit HDFS solr spool log is not enabled in Cloudera Manager

Hello, 

I would like to write a log file to /var/log/cdp/hdfs/audit/solr/spool directory.
I added the following settings to Cloudera Manger's HDFS Advanced ranger-solr-audit.xml.

xasecure.audit.destination.solr.batch.filespool.enabled=true
xasecure.audit.destination.solr.batch.filespool.dir=/var/log/cdp/hdfs/audit/solr/spool
xasecure.audit.destination.solr.batch.filespool.archive.dir=/var/log/cdp/hdfs/audit/solr/spool/archive
xasecure.audit.destination.solr.batch.filespool.archive.max.files=50

/var/log/cdp/hdfs/audit/solr/spool directory was missing, creating spool and archive directories.

Should I modify install.properties or ranger-hdfs-plugin/install/conf.templates/enable/ranger-hdfs-audit.xml directly?
Or, I would like to know if there are any additional parts that need to be set up in Cloudera Manager.

 

Any help would be highly appreciated.

sunera
suneraAnswer
Gold ⭐️
Dec 13, 2022 4:34 AM UTC

This issue has been resolved.
Solr's incorrect configuration was the cause, and as a result, a lot of logs were recorded in that folder.
After the solr environment was reconfigured, the log was no longer recorded.

1 reply

sunera
suneraAuthorAnswer
Gold ⭐️
Dec 13, 2022 4:34 AM UTC

This issue has been resolved.
Solr's incorrect configuration was the cause, and as a result, a lot of logs were recorded in that folder.
After the solr environment was reconfigured, the log was no longer recorded.

Translate