[
https://issues.apache.org/jira/browse/AMBARI-23621?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16443985#comment-16443985
]
Hudson commented on AMBARI-23621:
---------------------------------
SUCCESS: Integrated in Jenkins build Ambari-trunk-Commit #9082 (See
[https://builds.apache.org/job/Ambari-trunk-Commit/9082/])
AMBARI-23621. Ambari-server setup fails on Amazonlinux2 (aonishuk) (aonishuk:
[https://gitbox.apache.org/repos/asf?p=ambari.git&a=commit&h=edc9e341b324e8c5ff6b58c40ada098265e819cf])
* (edit) ambari-server/src/main/python/ambari_server/utils.py
> Ambari-server setup fails on Amazonlinux2
> -----------------------------------------
>
> Key: AMBARI-23621
> URL: https://issues.apache.org/jira/browse/AMBARI-23621
> Project: Ambari
> Issue Type: Bug
> Reporter: Andrew Onischuk
> Assignee: Andrew Onischuk
> Priority: Major
> Labels: pull-request-available
> Fix For: 2.7.0
>
> Attachments: AMBARI-23621.patch, AMBARI-23621.patch
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> Ambari server setup fails with the following error:
>
>
>
> Traceback (most recent call last):
> File "/usr/sbin/ambari-server.py", line 1054, in <module>
> mainBody()
> File "/usr/sbin/ambari-server.py", line 1024, in mainBody
> main(options, args, parser)
> File "/usr/sbin/ambari-server.py", line 974, in main
> action_obj.execute()
> File "/usr/sbin/ambari-server.py", line 79, in execute
> self.fn(*self.args, **self.kwargs)
> File "/usr/lib/ambari-server/lib/ambari_server/serverSetup.py", line
> 1199, in setup
> _setup_database(options)
> File "/usr/lib/ambari-server/lib/ambari_server/serverSetup.py", line
> 1005, in _setup_database
> dbmsAmbari = factory.create(options, properties, "Ambari")
> File "/usr/lib/ambari-server/lib/ambari_server/dbConfiguration.py",
> line 511, in create
> dbmsConfig = desc.create_config(options, properties, dbId)
> File "/usr/lib/ambari-server/lib/ambari_server/dbConfiguration.py",
> line 81, in create_config
> return self.fn_create_config(options, properties, self.storage_key,
> dbId)
> File
> "/usr/lib/ambari-server/lib/ambari_server/dbConfiguration_linux.py", line
> 884, in createPGConfig
> return PGConfig(options, properties, storage_type)
> File
> "/usr/lib/ambari-server/lib/ambari_server/dbConfiguration_linux.py", line
> 421, in __init__
> PGConfig.PG_HBA_DIR = get_postgre_hba_dir(OS_FAMILY)
> File "/usr/lib/ambari-server/lib/ambari_server/utils.py", line 268, in
> get_postgre_hba_dir
> get_pg_hba_init_files())
> OSError: [Errno 17] File exists
>
> As I checked this function /usr/lib/ambari-server/lib/ambari_server/utils.py
> get_postgre_hba_dir determines incorrectly the postgres data dir. If I change
> it to return "/var/lib/pgsql/9.5/data/" the setup finishes successfully.
> Verbose log attached. Used Ambari version: 2.7.0.0-330
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)