Using Ambari Core Services
Also available as:
PDF
loading table of contents...

Move the AMS metrics collector

Use this procedure to move the Ambari Metrics Collector to a new host.

  1. In Ambari Web, stop the Ambari Metrics service.
  2. 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_NAME] >:8080/api/v1/clusters/ [CLUSTER_NAME] /hosts/ [METRICS_COLLECTOR_HOSTNAME] /host_components/[METRICS_COLLECTOR]
  3. 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_NAME]:8080/api/v1/clusters/ [CLUSTER_NAME]/hosts/ [METRICS_COLLECTOR_HOSTNAME]/host_components/[METRICS_COLLECTOR]
  4. In Ambari Web > Hosts, browse to the page of the host on which you installed the new Metrics Collector and click Install the Metrics Collector.
  5. In Ambari Web, start the Ambari Metrics service.
Restarting all services is not required after moving the Ambari Metrics Collector, using Ambari 2.5 and later.