Support Questions

Find answers, ask questions, and share your expertise

cloudera-scm-agent start error: AttributeError: _dep_map

avatar
Explorer

There has 3 agent, 2 agent start up normal, the other one failed to start. 

 

CDH 5.11.1

 

 

 

/u01/cm-5.11.1/etc/init.d/cloudera-scm-agent start
Traceback (most recent call last):
  File "/u01/cm-5.11.1/lib64/cmf/agent/build/env/bin/cmf-agent", line 8, in <module>
    from pkg_resources import load_entry_point
  File "/u01/cm-5.11.1/lib64/cmf/agent/build/env/lib/python2.7/site-packages/pkg_resources.py", line 3007, in <module>
    working_set.require(__requires__)
  File "/u01/cm-5.11.1/lib64/cmf/agent/build/env/lib/python2.7/site-packages/pkg_resources.py", line 728, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/u01/cm-5.11.1/lib64/cmf/agent/build/env/lib/python2.7/site-packages/pkg_resources.py", line 631, in resolve
    requirements.extend(dist.requires(req.extras)[::-1])
  File "/u01/cm-5.11.1/lib64/cmf/agent/build/env/lib/python2.7/site-packages/pkg_resources.py", line 2489, in requires
    dm = self._dep_map
  File "/u01/cm-5.11.1/lib64/cmf/agent/build/env/lib/python2.7/site-packages/pkg_resources.py", line 2543, in __getattr__
    raise AttributeError(attr)
AttributeError: _dep_map

 

 

 

flowerbirds_0-1626253610822.png

other agent:

flowerbirds_1-1626253650267.png

 

1 REPLY 1

avatar
Cloudera Employee

@flowerbirds 

From the error it looks issues with python packages, can you verify with the other hosts if there are any missing python packages in ../../lib/python2.7/site-packages on the agent host?

 

- Is you python version same on all the hosts?

 

- Run the command below and share the output from the issue host and healthy host

rpm -qa | grep cloudera*

 

parser module is known to cause, review the below

 

https://stackoverflow.com/questions/18577975/python-attributeerror-dep-map

 

https://stackoverflow.com/questions/54908171/pip-installation-of-aiohttp-fails-with-odd-attributeerr...