Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created on 01-02-2018 06:24 PM - edited 08-18-2019 02:27 AM
how the get status summary details for services in ambari cluster by rest API commands
example for kafka service ( kafka broker summary )
let take the HDFS service as example
HDFS include the following sub application/services
so how to get status started/stop for "Standby NameNode" , ZKFailoverController , Active NameNode , etc
the same for all rest services
Created 01-03-2018 09:52 PM
This API will get you status of all components on all hosts in your cluster
curl -u {ambari_username}:{ambari_password} -H "X-Requested-By:ambari" -i GET http://localhost:8080/api/v1/clusters/cl1/components?fields=host_components/HostRoles/stateAnd if you need to find the status of individual component e.g for datanode;
curl -u {ambari_username}:{ambari_password} -H "X-Requested-By:ambari" -i GET http://localhost:8080/api/v1/clusters/cl1/components/DATANODE?fields=host_components/HostRoles/stateHope this helps!
Created 01-03-2018 06:26 PM
@Michael Bronson See this link http://henning.kropponline.de/2015/06/07/services-and-state-with-ambari-rest-api/which would helps.
Created 01-03-2018 09:52 PM
This API will get you status of all components on all hosts in your cluster
curl -u {ambari_username}:{ambari_password} -H "X-Requested-By:ambari" -i GET http://localhost:8080/api/v1/clusters/cl1/components?fields=host_components/HostRoles/stateAnd if you need to find the status of individual component e.g for datanode;
curl -u {ambari_username}:{ambari_password} -H "X-Requested-By:ambari" -i GET http://localhost:8080/api/v1/clusters/cl1/components/DATANODE?fields=host_components/HostRoles/stateHope this helps!
Created 10-03-2020 09:50 AM
curl -u *********:************** -H "X-Requested-By:ambari" -i GET http://bathdi-pp-ne-petra-hive-prod-02.azurehdinsight.net:8080/api/v1/clusters/cl1/components?fields...
Getting error : curl: (6) Could not resolve host: GET