Support Questions
Find answers, ask questions, and share your expertise

Ambari 2.4 server does not start,Ambari server 2.4 starting issue

New Contributor

This is my Traceback...I have installed Python 2,7 as that is what Ambari 2.4 requires

But my trace shows I am using Pyhton 2.6. Is this the reason for the error? How do I make Ambari use Python 2.7?

Thx

Traceback (most recent call last):

File "/usr/sbin/ambari-server.py", line 37, in <module> from ambari_server.serverUpgrade import upgrade, upgrade_stack, set_current

File "/usr/lib/python2.6/site-packages/ambari_server/serverUpgrade.py", line 50, in <module> from ambari_server.setupMpacks import replay_mpack_logs

File "/usr/lib/python2.6/site-packages/ambari_server/setupMpacks.py", line 34, in <module> from resource_management.libraries.functions.tar_archive import extract_archive, get_archive_root_dir

ImportError: cannot import name extract_archive

,

Starting ambari-server Traceback (most recent call last): File "/usr/sbin/ambari-server.py", line 37, in <module> from ambari_server.serverUpgrade import upgrade,

upgrade_stack, set_current File "/usr/lib/python2.6/site-packages/ambari_server/serverUpgrade.py",

line 50, in <module> from ambari_server.setupMpacks import replay_mpack_logs File "/usr/lib/python2.6/site-packages/ambari_server/setupMpacks.py",

line 34, in <module> from resource_management.libraries.functions.tar_archive import extract_archive, get_archive_root_dir ImportError: cannot import name extract_archive

Am not sure why python 2.6 lib is being used..Ambari 2.4 requires python version greater than 2.6. I have Python 2.7 in my path as well.

All was working well with Ambari 2.2. This problem started when I upgraded. I did all the old Ambari related directories, files etc..as suggested by others.

2 REPLIES 2

Re: Ambari 2.4 server does not start,Ambari server 2.4 starting issue

New Contributor

ravi, have you got solution for this? we are also facing the same issue.

Re: Ambari 2.4 server does not start,Ambari server 2.4 starting issue

Rising Star

Did you upgrade your ambari agents?