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.

Where can I get latest resource_management.core and shell for Ambari install?

Solved Go to solution

Where can I get latest resource_management.core and shell for Ambari install?

Expert Contributor

Hi.

I am doing a fresh install of HDP2.5.

I am trying to do:

sudo ambari-server setup

but I got this error:

  File "/usr/lib/python2.6/site-packages/ambari_server/serverClassPath.py", line 28, in <module>
    from resource_management.core.shell import quote_bash_args
ImportError: No module named resource_management.core.shell

I fixed this by copying in the quote_bash_args routine from here and removing the import.

Now I get another error, again because the core and/or shell module is missing:

  File "/usr/sbin/ambari-server.py", line 39, in <module>
    from ambari_server.serverSetup import reset, setup, setup_jce_policy
  File "/usr/lib/python2.6/site-packages/ambari_server/serverSetup.py", line 31, in <module>
    from ambari_commons.firewall import Firewall
  File "/usr/lib/python2.6/site-packages/ambari_commons/firewall.py", line 25, in <module>
    from resource_management.core import shell
ImportError: No module named resource_management.core

Where can I get the latest core and shell modules from?

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Where can I get latest resource_management.core and shell for Ambari install?

Mentor

@ed day I'm guessing your ambari-server setup is borked. Please reinstall ambari server and agent. When you remove the packages, make sure to clean /var/lib/ambari-server /usr/lib/ambari-server /usr/lib/python2.6/site-packages/ambari* etc.

3 REPLIES 3

Re: Where can I get latest resource_management.core and shell for Ambari install?

Mentor

@ed day I'm guessing your ambari-server setup is borked. Please reinstall ambari server and agent. When you remove the packages, make sure to clean /var/lib/ambari-server /usr/lib/ambari-server /usr/lib/python2.6/site-packages/ambari* etc.

Re: Where can I get latest resource_management.core and shell for Ambari install?

Expert Contributor

It was, as you say, borked and it was /usr/lib/python2.6/site-packages that was the problem. Many thanks!

Re: Where can I get latest resource_management.core and shell for Ambari install?

New Contributor

@Artem Ervits I cleaned up /var/lib/ambari-server, /usr/lib/python2.6/site-packages/ambari* and did a clean insall. But each time I do the install it says creating site-packages/resource_management : File exists. So even after a clean install the setup gives me the same error. How do I get around with this?

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