Support Questions
Find answers, ask questions, and share your expertise
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


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.


Re: Change default log directory path

Community Manager

Hi @rkottaru ,


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




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


Re: Change default log directory path



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