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.

While starting ambari server, I am getting IndexError: list index out of range exception.

Solved Go to solution

While starting ambari server, I am getting IndexError: list index out of range exception.

Here is the detail Exception : Using python /usr/bin/python2.7

Starting ambari-server

Traceback (most recent call last):

File "/usr/sbin/ambari-server.py", line 279, in <module>

PG_HBA_DIR = utils.get_postgre_hba_dir(OS_FAMILY)

File "/usr/lib/python2.6/site-packages/ambari_server/utils.py", line 198, in get_postgre_hba_dir

os.symlink(glob.glob(PG_HBA_INIT_FILES[OS_FAMILY] + '*')[0],

IndexError: list index out of range.

Is this specific to CentOS 7 ? Anyone ran into similar issue?

1 ACCEPTED SOLUTION

Accepted Solutions

Re: While starting ambari server, I am getting IndexError: list index out of range exception.

Guru

which version of ambari is this? On current latest ambari version (2.2.2.0) I see an explicit check to not go to that code.

 elif OSCheck.is_redhat7()

return PG_HBA_ROOT_DEFAULT
2 REPLIES 2

Re: While starting ambari server, I am getting IndexError: list index out of range exception.

Guru

which version of ambari is this? On current latest ambari version (2.2.2.0) I see an explicit check to not go to that code.

 elif OSCheck.is_redhat7()

return PG_HBA_ROOT_DEFAULT

Re: While starting ambari server, I am getting IndexError: list index out of range exception.

Thank you for pointing that out by mistake I have updated the Ambari with older version. It fixed now.

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