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.
You can check the status of each component on the individual node, using
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...
need full url