在初始化ambari的出现了 这种情况 在线的大佬求解

[ ~]# service ambari-server start
Using python /usr/bin/python2.7
Starting ambari-server
Traceback (most recent call last):
File "/usr/sbin/ambari-server.py", line 279, in
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

此错误是/etc/hosts中的节点名称与hostname名称一致,导致不能解析节点名称导致的错误
修改/etc/hosts