[ 
https://issues.apache.org/jira/browse/AMBARI-7114?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14491202#comment-14491202
 ] 

Marco Aurelio Freiberger Monteiro commented on AMBARI-7114:
-----------------------------------------------------------

Hello Alexandr!

This solution worked perfectly to me. I am using CentOS 7.1 and Ambari 1.7.

Thank you!

Marco Aurelio Freiberger Monteiro

> ambari-server setup fails with a python IndexError
> --------------------------------------------------
>
>                 Key: AMBARI-7114
>                 URL: https://issues.apache.org/jira/browse/AMBARI-7114
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-server
>    Affects Versions: 1.7.0
>         Environment: CentOS 7, python 2.7, recompiled ambari for python 2.7 
> support
>            Reporter: Alexander Herr
>
> I recompiled Ambari to use it on my CentOS machine, since there is no repo 
> for CentOS 7 and CentOS 7 ships with python 2.7. After building and 
> installing, running ambari-server setup gives the following error:
> {noformat}
> Traceback (most recent call last):
>   File "/usr/sbin/ambari-server.py", line 253, 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_FILE[OS_FAMILY] + '*')[0], 
> PG_HBA_INIT_FILES[OS_FAMILY])
> IndexError: list index out of range
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to