THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
See the property, "host_components" for all the host.
Sample:
Code Block |
---|
Output: ... "host_components" : [ { "href" : "http://AMBARI_SERVER_HOST:8080/api/v1/clusters/CLUSTERNAME/hosts/HOSTNAME/host_components/DATANODE", "HostRoles" : { "cluster_name" : "CLUSTERNAME", "component_name" : "DATANODE", "host_name" : "HOSTNAME" } }, { "href" : "http://AMBARI_SERVER_HOST:8080/api/v1/clusters/CLUSTERNAME/hosts/HOSTNAME/host_components/GANGLIA_MONITOR", "HostRoles" : { "cluster_name" : "CLUSTERNAME", "component_name" : "GANGLIA_MONITOR", "host_name" : "HOSTNAME" } }] ... |
2. DELETE all host components mapped to this host
...