Installation of Pivotal HD 3.0.1 with Ambari fails while installing the Ambari Metrics Collector
search cancel

Installation of Pivotal HD 3.0.1 with Ambari fails while installing the Ambari Metrics Collector

book

Article ID: 295056

calendar_today

Updated On:

Products

Services Suite

Issue/Introduction

Symptoms:

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

 

Environment


Cause

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.

Resolution

 

  1. Confirm which of the nodes is missing the python-devel package:
    rpm -qa | grep python-devel
    
     
  2. Install python-devel on the nodes where it is missing. Depending on the OS, this can be doneviazypper, RPM, or with yum using a command such as the one shown here:
    yum install python-devel