Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

How to find the node where ambari server runs

avatar
Expert Contributor

How to find the node where ambari server runs

1 ACCEPTED SOLUTION

avatar

@Kumar Veerappan

You should be able to read the /etc/ambari-agent/conf/ambari-agent.ini file on any node in the cluster. You will find a [server] section that will tell you where the Ambari server is:

[server]
hostname = ambari-server.example.com
url_port = 8440
secured_url_port = 8441

View solution in original post

4 REPLIES 4

avatar
Expert Contributor

@Kumar Veerappan

You can run below command to check if Ambari server is running on the machine or not :

ps -ef|grep ambari-server and you will ambari server process there if the server is started.

Something like below:

root 17395 1 1 Jul27 ? 05:49:42 /usr/jdk64/jdk1.8.0_60/bin/java -server -XX:NewRatio=3 -XX:+UseConcMarkSweepGC -XX:-UseGCOverheadLimit -XX:CMSInitiatingOccupancyFraction=60 -Dsun.zip.disableMemoryMapping=true -Xms512m -Xmx2048m -Djava.security.auth.login.config=/etc/ambari-server/conf/krb5JAASLogin.conf -Djava.security.krb5.conf=/etc/krb5.conf -Djavax.security.auth.useSubjectCredsOnly=false -cp /etc/ambari-server/conf:/usr/lib/ambari-server/*:/usr/share/java/postgresql-jdbc.jar org.apache.ambari.server.controller.AmbariServer

avatar
Expert Contributor

@lraheja thank you very much

avatar

@Kumar Veerappan

You should be able to read the /etc/ambari-agent/conf/ambari-agent.ini file on any node in the cluster. You will find a [server] section that will tell you where the Ambari server is:

[server]
hostname = ambari-server.example.com
url_port = 8440
secured_url_port = 8441

avatar
Expert Contributor

@emaxwell your answer is most easiest method to find where Ambari server process runs

thank you very much