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.

ImportError: No module named resource_management.core.shell

Solved Go to solution

ImportError: No module named resource_management.core.shell

Traceback (most recent call last):

File "/usr/lib/python2.6/site-packages/ambari_server/bootstrap.py", line 41, in <module>

from resource_management.core.shell import quote_bash_args

ImportError: No module named resource_management.core.shell

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

Re: ImportError: No module named resource_management.core.shell

Initially I installed manually ambari agent and that one I didn’t uninstall it properly. So, while running the ambari to deploy the agent, script is pointing to wrong link

resource_management -> /usr/lib/ambari-agent/lib/resource_management

instead of

resource_management -> /usr/lib/ambari-server/lib/resource_management

Solution:

goto

cd /usr/lib/python2.6/site-packages/

create the correct link

ln -s /usr/lib/ambari-server/lib/resource_management

installation agent is deployment is working fine.

View solution in original post

2 REPLIES 2
Highlighted

Re: ImportError: No module named resource_management.core.shell

Initially I installed manually ambari agent and that one I didn’t uninstall it properly. So, while running the ambari to deploy the agent, script is pointing to wrong link

resource_management -> /usr/lib/ambari-agent/lib/resource_management

instead of

resource_management -> /usr/lib/ambari-server/lib/resource_management

Solution:

goto

cd /usr/lib/python2.6/site-packages/

create the correct link

ln -s /usr/lib/ambari-server/lib/resource_management

installation agent is deployment is working fine.

View solution in original post

Highlighted

Re: ImportError: No module named resource_management.core.shell

You comment helped us too! However, on nodes running only ambari-agent the symlink should point to

/usr/lib/ambari-agent/lib/resource_management

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