- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
cloudera-scm-agent start error: AttributeError: _dep_map
Created on 07-14-2021 02:13 AM - edited 09-16-2022 07:42 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
other agent:
Created 07-31-2021 10:47 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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