Community Articles
Find and share helpful community-sourced technical articles
Explorer

The Ranger KMS logs are present

cd /usr/hdp/current/ranger-kms/ews
lrwxrwxrwx  1  kms  kms  19  sep 23  20:33 logs-> /var/log/ranger/kms

We would like to change ranger KMS logs location from /var/log/ ranger/kms to /hadoop/log/ranger/kms.

mkdir /hadoop/log/ranger/kms
chmod 755 /hadoop/log/ranger/kms
chown kms:kms /hadoop/log/ranger/kms

rm symbolic link for logs

cd /usr/hdp/current/ranger-kms/ 
vi ranger-kms
search for word "TOMCAT_LOG_DIR" and replace with new location.
TOMCAT_LOG_DIR=/hadoop/log/ranger/kms 

In Ambari webUI update log directory for ranger KMS kms_log_dir property.

Restart KMS

801 Views