Search This Blog

Modifying Ambari server configuration properties

In this article, We will learn how to modify Ambari server configuration properties. Ambari server contains most of it's configuration properties in file is present under /etc/ambari-server/conf folder.

Now we will learn how to  modify pid directory property (pid.dir) in file. pid.dir property contains directory path where ambari server pid file is stored. It's default value is /var/run/ambari-server.

1) Check current value of pid.dir property using grep command.

grep pid.dir /etc/ambari-server/conf/

2) Stop ambari server .

If you are not running the command using root user, You may have to prepend sudo to the command.


ambari-server stop
service ambari-server stop

3) Modify the property pid.dir using vi editor.

The picture below shows pid.dir property pointing to /var/log/ambari-server.


vi /etc/ambari-server/conf/

4) Start ambari server


ambari-server start

service ambari-server start

The picture below also shows pid directory now pointing to /var/log/ambari-server path.

You can also run grep command to check pid.dir's latest value like in first step.

You can also view below video for the same information.

No comments:

Post a Comment