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

Alexandr  commented on AMBARI-7114:
-----------------------------------

This problem with systemd startup system.
Enable postgresql autostart 
{quote}
systemctl enable postgresql
{quote}

change line 32 in file /usr/lib/python2.6/site-packages/ambari_server/utils.py

to
{quote}
 'redhat': '/etc/systemd/system/multi-user.target.wants/postgresql.service',
{quote}

> 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