Support Questions
Find answers, ask questions, and share your expertise

ImportError: cannot import name _common. Unable to start metrics monitor

ImportError: cannot import name _common. Unable to start metrics monitor

Explorer

I'm having an issue starting the metrics monitor on one of my nodes.

I get the below error.

"ImportError: cannot import name _common"


metrics-monitor.png
2 REPLIES 2
Highlighted

Re: ImportError: cannot import name _common. Unable to start metrics monitor

Super Mentor

@Swaapnika Guntaka

Looks like the "psutils" libraries are causing the issue. So please try the following steps to fix it:

1. SSH to the ambari metric monitor host and then stop the ams monitor.

2. Now rebuild the "psutil" module.

# cd /usr/lib/python2.6/site-packages/resource_monitoring
# python psutil/build.py

3. Now restart ambari metric monitors

.

Highlighted

Re: ImportError: cannot import name _common. Unable to start metrics monitor

Explorer

I still face the issue. I'm doing a non-root installation. I build the psutil as root which went fine. But when I try to restart the metrics monitor it fails.