Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

ImportError: No module named resource_management.core.shell

avatar
Contributor

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

avatar
Contributor

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

avatar
Contributor

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.

avatar
Master Guru

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

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