Moving the Metrics Collector
Use this procedure to move the Ambari Metrics Collector to a new host:
In Ambari Web , stop the Ambari Metrics service.
Execute the following API call to delete the current Metric Collector component:
curl -u admin:admin -H "X-Requested-By:ambari" - i -X DELETE http://
ambari.server:8080/api/v1/clusters/
cluster.name/hosts/
metrics.collector.hostname/host_components/METRICS_COLLECTOR
Execute the following API call to add Metrics Collector to a new host:
curl -u admin:admin -H "X-Requested-By:ambari" - i -X POST http://
ambari.server:8080/api/v1/clusters/
cluster.name/hosts/
metrics.collector.hostname/host_components/METRICS_COLLECTOR
In Ambari Web, go the page of the host on which you installed the new Metrics Collector and click Install the Metrics Collector.
In Ambari Web, start the Ambari Metrics service.
Note | |
---|---|
Restarting all services is not required after moving the Ambari Metrics Collector, using Ambari 2.5 and later. |