Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-25442

Ambari-server setup Commands Fails if There is no Postgresql Packages

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.7.4
    • Fix Version/s: None
    • Component/s: ambari-server
    • Labels:
      None

      Description

      Problem Statement : Ambari-server setup Commands Fails if There is no Postgresql Packages

      Problem Description : I have deployed a node with RHEL7 and installed ambari-server and then removed the dependent Postgresql Package which comes with ambari as i am using mariaDB for my ambari.

      After that when i run the command ambari-server setup it fails with error :

      [root@aanaik1 ~]# ambari-server setup
      Using python  /usr/bin/python
      Setup ambari-server
      Traceback (most recent call last):
        File "/usr/sbin/ambari-server.py", line 44, in <module>
          from ambari_server.serverSetup import reset, setup, setup_jce_policy
        File "/usr/lib/ambari-server/lib/ambari_server/serverSetup.py", line 89, in <module>
          JDBC_DB_OPTION_VALUES = get_supported_jdbc_drivers()
        File "/usr/lib/ambari-server/lib/ambari_server/serverSetup.py", line 86, in get_supported_jdbc_drivers
          factory = DBMSConfigFactory()
        File "/usr/lib/ambari-server/lib/ambari_server/dbConfiguration.py", line 390, in __init__
          from ambari_server.dbConfiguration_linux import createPGConfig, createOracleConfig, createMySQLConfig, \
        File "/usr/lib/ambari-server/lib/ambari_server/dbConfiguration_linux.py", line 348, in <module>
          class PGConfig(LinuxDBMSConfig):
        File "/usr/lib/ambari-server/lib/ambari_server/dbConfiguration_linux.py", line 378, in PGConfig
          raise FatalException(1, "Cannot find postgresql-setup script.")
      ambari_commons.exceptions.FatalException: 'Fatal exception: Cannot find postgresql-setup script., exit code 1'
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              asnaik Akhil Naik
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: