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.

I get this error when I run a command line ambari-server setup

Highlighted

I get this error when I run a command line ambari-server setup

New Contributor

Traceback (most recent call last): File "/usr/sbin/ambari-server.py", line 35, in from ambari_commons.os_utils import remove_file File "/usr/lib/ambari-server/lib/ambari_commons/os_utils.py", line 39, in from ambari_commons.os_linux import os_change_owner, os_getpass, os_is_root, os_run_os_command, \ File "/usr/lib/ambari-server/lib/ambari_commons/os_linux.py", line 25, in from ambari_commons import subprocess32 File "/usr/lib/ambari-server/lib/ambari_commons/subprocess32.py", line 146, in

import importlib ImportError: No module named importlib

1 REPLY 1

Re: I get this error when I run a command line ambari-server setup

Contributor

@Simon Waligo What version of Python you are using (i.e Default Python version for the OS set to?)

As of Ambaro 2.7.1, Python 2.7 is supported, ref: https://docs.hortonworks.com/HDPDocuments/Ambari-2.7.1.0/bk_ambari-installation/content/mmsr_softwar...

Also If you are on 2.7, you can try below command to see if it helps?

pip install importlib