Created 08-18-2016 06:35 AM
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 ?
Created 08-18-2016 06:35 AM
This is easier done at install time. After installation, your best bet is to create symbolic links. Please see the following thread.
Created 08-18-2016 06:35 AM
This is easier done at install time. After installation, your best bet is to create symbolic links. Please see the following thread.
Created 08-18-2016 07:30 PM
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.
Created 08-19-2016 06:12 AM
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.
Created 09-15-2016 06:36 PM
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.