Support Questions
Find answers, ask questions, and share your expertise

Running service check only on Master node

Running service check only on Master node

New Contributor

Hi, I am trying to write a service check for a service in Ambari. However, when I hit "Run Service Check," it is run on the master node as well as the client nodes. Is there a good way to have only the master node run it?

3 REPLIES 3
Highlighted

Re: Running service check only on Master node

New Contributor

i.e. Is there any way from Ambari's config to know whether the node is a master or a client?

Highlighted

Re: Running service check only on Master node

Pei Heng Zeng

Service check basically does the health check of the whole service, for example with HDFS its

namenode(master) and Datanode(slave).

Ambari Config groups could help here.

http://docs.hortonworks.com/HDPDocuments/Ambari-2.1.0.0/bk_Ambari_Users_Guide/content/_using_host_co...

Hope this helps.

Highlighted

Re: Running service check only on Master node

Expert Contributor

@Pei Heng Zeng To identify which node is running master service, log on to Ambari and then select service from Left panel (For eg HDFS) then you would see components of HDFS in main panel like Namenode, Namenode HA, DataNode.

If you click on master service name (for eg : Namenode) , it will take you to the host page on which namenode is running and you can IPadress/FQDN of the node.

Alsternatively

You can find via AMbari API like this :http://AMBARI_SERVER:8080/api/v1/clusters/CLUSTER_NAME/services/HDFS