1. Customizing Ambari Server Log + PID Directories
Use the following instructions to modify the Ambari Server Log and PID locations.
On the Ambari Server host, stop the Ambari Server:
ambari-server stopTo modify the PID location, edit the Ambari Server properties file:
vi /etc/ambari-server/conf/ambari.propertiesModify the
pid.dirproperty and save the file:pid.dir=/var/run/ambari-serverTo modify the Log location, edit the Ambari Server log4j file:
vi /etc/ambari-server/conf/log4j.propertiesModify the
ambari.log.dirproperty and save the file:ambari.log.dir=${ambari.root.dir}/var/log/ambari-serverCreate the new directories and be sure to set the directory ownership and permissions to allow the Ambari Server process access.
Restart the Ambari Server.
ambari-server start

