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

Customizing Ambari Server Log + PID Directories

To modify the Ambari Server Log and PID locations:

Steps

  1. On the Ambari Server host, stop the Ambari Server:

    ambari-server stop
  2. To modify the PID location, edit the Ambari Server properties file:

    vi /etc/ambari-server/conf/ambari.properties
  3. Modify the pid.dir property and save the file:

    pid.dir=/var/run/ambari-server
  4. To modify the Log location, edit the Ambari Server log4j file:

    vi /etc/ambari-server/conf/log4j.properties
  5. Modify the ambari.log.dir property and save the file:

    ambari.log.dir=${ambari.root.dir}/var/log/ambari-server
  6. Create the new directories and be sure to set the directory ownership and permissions to allow the Ambari Server process access.

  7. Restart the Ambari Server.

    ambari-server start