In this article, We will learn how to modify Ambari server configuration properties. Ambari server contains most of it's configuration properties in ambari.properties. ambari.properties file is present under /etc/ambari-server/conf folder.
Now we will learn how to modify pid directory property (pid.dir) in ambari.properties 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/ambari.properties
2) Stop ambari server .
If you are not running the command using root user, You may have to prepend sudo to the command.
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.
Commnad:
vi /etc/ambari-server/conf/ambari.properties
4) Start ambari server
Command:
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.
Now we will learn how to modify pid directory property (pid.dir) in ambari.properties 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/ambari.properties
2) Stop ambari server .
If you are not running the command using root user, You may have to prepend sudo to the command.
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.
Commnad:
vi /etc/ambari-server/conf/ambari.properties
4) Start ambari server
Command:
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.
Nestled in the spiritual heart of India, Vrindavan is a serene haven that attracts thousands of devotees, spiritual seekers, and investors every year. Known for its rich cultural heritage and divine ambiance, owning a Property in Vrindavan is not just an investment in real estate but also in peace, spirituality, and a vibrant lifestyle. At Brajbhoomi Realty, we help you find the perfect property that resonates with your aspirations.
ReplyDeleteOffice No. 163, Basera Baikunth, Chaitanya Vihar, Vrindavan, Mathura, Pin Code: 281121
8375001122