Upgrade Ambari Metrics
If you have Ambari Metrics installed, you have some manual steps to perform as part of the upgrade. Upgrading Ambari Metrics involves ensuring that it is in Maintenance Mode, upgrading the Metrics Collector, and upgrading the Ambari Metrics Grafana component.
-
Confirm that Ambari Metrics service is stopped and in Maintenance
Mode.
If Ambari Metrics service is not stopped, from Ambari Web, browse to Services > Ambari Metrics and select Stop from the Service Actions menu.
-
On every host in your cluster running a Metrics Monitor, run the following
commands:
For RHEL/CentOS/Oracle Linux:
yum clean all
yum upgrade ambari-metrics-monitor ambari-metrics-hadoop-sink
For SLES:
zypper clean
zypper up ambari-metrics-monitor ambari-metrics-hadoop-sink
For Ubuntu/Debian:
apt-get clean all
apt-get update
apt-get install ambari-metrics-assembly
-
Execute the following command on all hosts running the Metrics Collector:
For RHEL/CentOS/Oracle Linux:
yum upgrade ambari-metrics-collector
For SLES:
zypper up ambari-metrics-collector
For Ubuntu/Debian:
apt-get clean all
apt-get update
apt-get install ambari-metrics-collector
-
Execute the following command on the host running the Grafana component:
For RHEL/CentOS/Oracle Linux:
yum upgrade ambari-metrics-grafana
For SLES:
zypper up ambari-metrics-grafana
For Ubuntu/Debian:
apt-get clean all
apt-get update
apt-get install ambari-metrics-grafana
NoteDO NOT START the Ambari Metrics System service. It will be started automatically during the HDP upgrade process.