Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

ImportError: No module named resource_management.core.shell

avatar
New Member

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
New Member

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
New Member

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