Apache Ambari Administration
Also available as:
PDF
loading table of contents...

Customizing Ambari Agent Log + PID Directories

To modify the Ambari Agent Log and PID locations:

Steps

  1. On each host running an Ambari Agent, stop the Ambari Agent:

    ambari-agent stop
  2. Edit the Ambari Agent properties file:

    vi /etc/ambari-agent/conf/ambari-agent.ini
  3. In the [agent] section, modify the piddir and logdir properties:

    [agent]

    logdir=/var/log/ambari-agent

    piddir=/var/run/ambari-agent

  4. Save the file.

  5. Create the new directories and be sure to set the directory ownership and permissions to allow the Ambari Agent process access.

  6. Restart the Ambari Agent.

    ambari-agent start