Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Change default log directory path

Change default log directory path

Explorer

Hi Can someone help me how to change the log directory paths from /var/log to /hadoop/var/log. we have HDFS, YARN, MapReduce2, Hive, Spark2, Zookeeper, Ambari Metrics and smartsense services running in our Dev Env.

2 REPLIES 2

Re: Change default log directory path

Community Manager

Hi @rkottaru ,

 

You may want to check below two threads and see if they are helpful:

https://community.cloudera.com/t5/Support-Questions/Log-file-location-Is-there-a-way-to-change-var-l...

https://community.cloudera.com/t5/Support-Questions/Change-the-log-location-for-Ambari-Metrics-Colle...

 

Thanks,

Li

Li Wang, Technical Solution Manager


Was your question answered? Make sure to mark the answer as the accepted solution.
If you find a reply useful, say thanks by clicking on the thumbs up button.

Learn more about the Cloudera Community:

Terms of Service

Community Guidelines

How to use the forum

Highlighted

Re: Change default log directory path

Explorer

@lwang 

Thanks for the Info my question is , our current log directory paths are set as var/log/service so to change this to /hadoop/var/log/servce should we create any directories or move the current directories under /var/log or just change the Hadoop Log Dir Prefix to /hadoop/var/log  in Ambari fix the issue.

Don't have an account?
Coming from Hortonworks? Activate your account here