Created 08-18-2016 08:42 PM
How to find the node where ambari server runs
Created 08-18-2016 08:49 PM
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
Created 08-18-2016 08:48 PM
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
Created 08-18-2016 08:57 PM
@lraheja thank you very much
Created 08-18-2016 08:49 PM
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
Created 08-18-2016 08:55 PM
@emaxwell your answer is most easiest method to find where Ambari server process runs
thank you very much