Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Can not start ambari-metrics-monitor on RHEL 7

Can not start ambari-metrics-monitor on RHEL 7

Explorer

Hi team,

I have installed Ambari 2.4.2 and HDP 2.5.3 successful on my cluster, all services are starting fine. But only ambari-metrics-monitors on all nodes are not starting. I got messages in logs here:

psutil binaries need to be built by running, psutil/build.py manually or by running a, mvn clean package, command.
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/resource_monitoring/main.py", line 27, in <module>
    from core.controller import Controller
  File "/usr/lib/python2.6/site-packages/resource_monitoring/core/controller.py", line 28, in <module>
    from metric_collector import MetricsCollector
  File "/usr/lib/python2.6/site-packages/resource_monitoring/core/metric_collector.py", line 23, in <module>
    from host_info import HostInfo
  File "/usr/lib/python2.6/site-packages/resource_monitoring/core/host_info.py", line 22, in <module>
    import psutil
  File "/usr/lib/python2.6/site-packages/resource_monitoring/psutil/build/lib.linux-x86_64-2.7/psutil/__init__.py", line 89, in <module>
    import psutil._pslinux as _psplatform
  File "/usr/lib/python2.6/site-packages/resource_monitoring/psutil/build/lib.linux-x86_64-2.7/psutil/_pslinux.py", line 20, in <module>
    from psutil import _common
ImportError: cannot import name _common

Currently on my server that have been installed Python 2.7 (This is security policy).

Please help me resolve this problem.

thanks!

1 REPLY 1
Highlighted

Re: Can not start ambari-metrics-monitor on RHEL 7

Super Mentor

@Tin Huynh

Can you please try the following:

rm -rf /usr/lib/python2.6/site-packages/resource_monitoring/psutil/ 
OR Take a backup of the above directory before deleting.

Then

yum reinstall ambari-metrics-monitor 

Looks like your psutil build got corrupted.

.

.

Else you can also try to rebuild the psutil.

cd /usr/lib/python2.6/site-packages/resource_monitoring/psutil
make install
ambari-metrics-monitor restart

.

Don't have an account?
Coming from Hortonworks? Activate your account here