Support Questions
Find answers, ask questions, and share your expertise

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.


Super Collaborator

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



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.

; ;