Administering Ambari
Also available as:
loading table of contents...

Customizing Ambari agent log and pid directories

To modify the Ambari agent log and pid locations:

  1. Using a command line editor 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.
  4. Save the ambari-agent.inifile.
  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