Hi All,

I have provisioned a cluster using Ambari Rest API's and I want to monitor the 
progress of the cluster deployment.
Basically, I want  to check if the deployment was successful and all the 
services are up and running.

One way could be to check the state of the services, if all the services are in 
STARTED state then we can confirm that the deployment is COMPLETED and 
successful.

$ curl -X GET -H "X-Requested-By: ambari" -u admin:admin 
https://<ambari_server>/api/v1/clusters/<cluster_name>/services/?fields=ServiceInfo/state

Please let me know if there is any other way to check the same.

NOTE: Instead of pointing to a general link which describes all the REST calls 
for Ambari, I would appreciate if someone could clarify if there is any other 
approach with an example or command

Regards,
Pratik Gadiya

DISCLAIMER
==========
This e-mail may contain privileged and confidential information which is the 
property of Persistent Systems Ltd. It is intended only for the use of the 
individual or entity to which it is addressed. If you are not the intended 
recipient, you are not authorized to read, retain, copy, print, distribute or 
use this message. If you have received this communication in error, please 
notify the sender and delete all copies of this message. Persistent Systems 
Ltd. does not accept any liability for virus infected mails.

Reply via email to