Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

can i change log location in HDP installation

avatar
Expert Contributor

Hi Team,

we see logs of various hadoop services are stored in /var/log

can we change it to our customized location

if i dont want to store logs in below location then

/var/log/ambari-agent/ /var/log/ambari-metrics-monitor/ /var/log/ambari-server/ /var/log/hbase /var/log/zookeeper

i see in ambari changing log location is disabled ?

1 ACCEPTED SOLUTION

avatar
Super Guru
hide-solution

This problem has been solved!

Want to get a detailed solution you have to login/registered on the community

Register/Login
4 REPLIES 4

avatar
Super Guru
hide-solution

This problem has been solved!

Want to get a detailed solution you have to login/registered on the community

Register/Login

avatar
Super Guru

@ripunjay godhani

You need to stop Ambari services to allow changes to configurations like log location. During that time, your cluster could still run, but you will have a gap in Ambari logs and metrics.

avatar
Super Collaborator

@ripunjay godhani

For service logs , log directory is controlled by a configuration property. You can modify the configuration property .

Look at https://cwiki.apache.org/confluence/display/AMBARI/Modify+configurations for more details.

You will have to restart the service for the changes to take effect.

avatar
Expert Contributor

@ripunjay godhani

I want to be sure I understand your post. Are you saying that modifying a single Ambari property will relocate logs for all components on a restart? If so, can share what the name of that property is? The page you linked to does not have a single mention of log location.

In a perfect world, I would have left plenty of room under /var for logging, but we have a heavily used cluster with a lot of data and constant crashes from full /var on many of the machines. I need to move everything to a new location.