ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vitalyi Brodetskyi" <vbrodets...@hortonworks.com>
Subject Review Request 30829: Setup ambari with existing postgres fails
Date Tue, 10 Feb 2015 14:27:13 GMT

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/30829/
-----------------------------------------------------------

Review request for Ambari, Dmitro Lisnichenko and Florian Barca.


Bugs: AMBARI-9550
    https://issues.apache.org/jira/browse/AMBARI-9550


Repository: ambari


Description
-------

Ambari-server setup was made with command {{ambari-server setup --database=postgres --databasehost=os-ambari-us-1423480907-hdfs-1-4.novalocal
--databaseport=5432 --databasename=ambari --databaseusername=ambari --databasepassword=bigdata
--java-home=/usr/jdk64/jdk1.7.0_67 -s}} and failed:
{noformat}
Using python  /usr/bin/python2.6
Setup ambari-server
Traceback (most recent call last):
  File "/usr/sbin/ambari-server.py", line 36, in <module>
    from ambari_server.serverSetup import reset, setup, setup_jce_policy
  File "/usr/lib/python2.6/site-packages/ambari_server/serverSetup.py", line 79, in <module>
    JDBC_DB_OPTION_VALUES = get_supported_jdbc_drivers()
  File "/usr/lib/python2.6/site-packages/ambari_server/serverSetup.py", line 76, in get_supported_jdbc_drivers
    factory = DBMSConfigFactory()
  File "/usr/lib/python2.6/site-packages/ambari_server/dbConfiguration.py", line 319, in __init__
    from ambari_server.dbConfiguration_linux import createPGConfig, createOracleConfig, createMySQLConfig
  File "/usr/lib/python2.6/site-packages/ambari_server/dbConfiguration_linux.py", line 290,
in <module>
    class PGConfig(LinuxDBMSConfig):
  File "/usr/lib/python2.6/site-packages/ambari_server/dbConfiguration_linux.py", line 304,
in PGConfig
    PG_HBA_DIR = get_postgre_hba_dir(OSCheck.get_os_family())
  File "/usr/lib/python2.6/site-packages/ambari_server/utils.py", line 218, in get_postgre_hba_dir
    os.symlink(glob.glob(PG_HBA_INIT_FILES[OS_FAMILY] + '*')[0],
IndexError: list index out of range
ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -q -i /grid/0/jenkins/workspace/Run-Ambari-Setup@4/build-utils/openstack-utils/accounts/hw-qe-keypair.pem
root@172.22.85.9 "ambari-server start" &
Using python  /usr/bin/python2.6
Starting ambari-server
Traceback (most recent call last):
  File "/usr/sbin/ambari-server.py", line 36, in <module>
    from ambari_server.serverSetup import reset, setup, setup_jce_policy
  File "/usr/lib/python2.6/site-packages/ambari_server/serverSetup.py", line 79, in <module>
    JDBC_DB_OPTION_VALUES = get_supported_jdbc_drivers()
  File "/usr/lib/python2.6/site-packages/ambari_server/serverSetup.py", line 76, in get_supported_jdbc_drivers
    factory = DBMSConfigFactory()
  File "/usr/lib/python2.6/site-packages/ambari_server/dbConfiguration.py", line 319, in __init__
    from ambari_server.dbConfiguration_linux import createPGConfig, createOracleConfig, createMySQLConfig
  File "/usr/lib/python2.6/site-packages/ambari_server/dbConfiguration_linux.py", line 290,
in <module>
    class PGConfig(LinuxDBMSConfig):
  File "/usr/lib/python2.6/site-packages/ambari_server/dbConfiguration_linux.py", line 304,
in PGConfig
    PG_HBA_DIR = get_postgre_hba_dir(OSCheck.get_os_family())
  File "/usr/lib/python2.6/site-packages/ambari_server/utils.py", line 218, in get_postgre_hba_dir
    os.symlink(glob.glob(PG_HBA_INIT_FILES[OS_FAMILY] + '*')[0],
IndexError: list index out of range
{noformat}


Diffs
-----

  ambari-server/src/main/python/ambari_server/dbConfiguration_linux.py 2f48c2a 
  ambari-server/src/test/python/TestAmbariServer.py fac6637 

Diff: https://reviews.apache.org/r/30829/diff/


Testing
-------

mvn clean test


Thanks,

Vitalyi Brodetskyi


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message