Installation of PHD 3.0.1 via Ambari may fail while installing the component, Ambari Metrics Collector. An error message is seen as shown below.
Error Message
The error details in the Ambari and /var/log/ambari-server/ambari-server.log will be shown as follows:
File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 291, in _call raise Fail(err_msg) resource_management.core.exceptions.Fail: Execution of '/usr/bin/yum -d 0 -e 0 -y install ambari-metrics-monitor' returned 1. Error: Package: ambari-metrics-monitor-2.1.2.2-163.x86_64 (AMBARI-2.1.2.2) Requires: python-devel You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest
The reason for this issue is that the python-devel package has not been installed on at least one of the nodes in the cluster.
rpm -qa | grep python-devel
yum install python-devel