2. Customizing Ambari Agent Log + PID Directories
Use the following instructions to modify the Ambari Agent Log and PID locations.
On each host running an Ambari Agent, stop the Ambari Agent:
ambari-agent stopEdit the Ambari Agent properties file:
vi /etc/ambari-agent/conf/ambari-agent.iniIn the [agent] section, modify the piddir and logdir properties:
[agent]logdir=/var/log/ambari-agentpiddir=/var/run/ambari-agentSave the file.
Create the new directories and be sure to set the directory ownership and permissions to allow the Ambari Agent process access.
Restart the Ambari Agent.
ambari-agent start

