Ambari Matrices: resource_management.core.exceptions.ExecutionFailed: Execution of ‘/usr/sbin/ambari-metrics-monitor –config /etc/ambari-metrics-monitor/conf start’ returned 255

Showing python error:
resource_management.core.exceptions.ExecutionFailed: Execution of '/usr/sbin/ambari-metrics-monitor --config /etc/ambari-metrics-monitor/conf start' returned 255. Building psutil...
Traceback (most recent call last):
File "", line 15, in <module>
from setuptools import setup, Extension
File "/usr/lib/python2.7/site-packages/setuptools/", line 12, in <module>
import setuptools.version

File "/usr/lib/python2.7/site-packages/packaging/", line 59, in <module>
MARKER_EXPR = originalTextFor(MARKER_EXPR())("marker")
TypeError: _call_() takes exactly 2 arguments (1 given)
Verifying Python version compatibility...
Its an issue with python
 Run pip first if it throws exception, run the below command. 
# python -m pip install --upgrade --force pip
Try to import setuptools module.
# python
Python 2.7.5 (default, Apr 11 2018, 07:36:10) 
[GCC 4.8.5 20150623 (Red Hat 4.8.5-28)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import setuptools
if the above import throws exception, then run the below command, but the version
will change based on issue type.
# pip install setuptools==33.1.1

There are no comments yet

Leave a comment

Your email address will not be published. Required fields are marked *