Akhil Naik created AMBARI-25442:
-----------------------------------
Summary: Ambari-server setup Commands Fails if There is no
Postgresql Packages
Key: AMBARI-25442
URL: https://issues.apache.org/jira/browse/AMBARI-25442
Project: Ambari
Issue Type: Bug
Components: ambari-server
Affects Versions: 2.7.4
Reporter: Akhil Naik
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 :
{code:java}
[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'
{code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)