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

How to check health of services running on individual node including namenode,datanode,edge node on cluster ?


I am planning to do an automation where i can do OS upgrade/patching (One node at a time) which needs node restart.

How can i test the services are up and running on that node after patching ?

Looking for something like api which can help to validate services on datanode,namenode and edge node.


Expert Contributor

@Gaurav Parmar

You can check the status of each component on the individual node, using below API

curl -i -u admin:admin -H "X-Requested-By:
ambari"-X GET http://<AMBARI_HOST>/api/v1/clusters/<CLUSTER_NAME>/hosts/<HOST_NAME>/host_components?fields=HostRol...

Before you to get the list of components installed on a particular node using following API. (Below API for namenode, similarly you can make API call to automate for other components like datanode on cluster)

curl -u admin:admin -H "X-Requested-By:
ambari"-X GET http://$AMBARI_HOST:8080/api/v1/clusters/$CLUSTER_NAME/services/HDFS/components/NAMENODE?fields=host...

New Contributor

need full url

Take a Tour of the Community
Don't have an account?
Your experience may be limited. Sign in to explore more.