You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "eubnara (via GitHub)" <gi...@apache.org> on 2025/02/26 01:37:32 UTC
[PR] AMBARI-26311: postgresql-server should be installed even though ambari-server is configured with mysql [ambari]
eubnara opened a new pull request, #3945:
URL: https://github.com/apache/ambari/pull/3945
## What changes were proposed in this pull request?
(Please fill in changes proposed in this fix)
Allow ambari-server can be installed or executed with db-purge-history script without postgresql-server package on centos7 if ambari-server is not configured with postgresql.
## How was this patch tested?
manual tests on our company's cluster.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@ambari.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ambari.apache.org
For additional commands, e-mail: dev-help@ambari.apache.org
Re: [PR] AMBARI-26311: postgresql-server should be installed even though ambari-server is configured with mysql [ambari]
Posted by "eubnara (via GitHub)" <gi...@apache.org>.
eubnara commented on code in PR #3945:
URL: https://github.com/apache/ambari/pull/3945#discussion_r1970774065
##########
ambari-server/src/main/python/ambari_server/dbCleanup.py:
##########
@@ -106,6 +111,9 @@ def run_db_purge(options):
)
return 1
+ properties = get_ambari_properties()
+ parse_properties_file(options)
+ options.database_index = LINUX_DBMS_KEYS_LIST.index(properties[JDBC_DATABASE_PROPERTY])
Review Comment:
Without these, it tries to execute `ensure_jdbc_driver_is_installed()` with postgresql even though ambari-server is configured with another RDBMS.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@ambari.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ambari.apache.org
For additional commands, e-mail: dev-help@ambari.apache.org
Re: [PR] AMBARI-26311: postgresql-server should be installed even though ambari-server is configured with mysql [ambari]
Posted by "eubnara (via GitHub)" <gi...@apache.org>.
eubnara commented on code in PR #3945:
URL: https://github.com/apache/ambari/pull/3945#discussion_r1970775173
##########
ambari-server/src/main/python/ambari_server/dbConfiguration_linux.py:
##########
@@ -598,6 +597,8 @@ class PGConfig(LinuxDBMSConfig):
)
def __init__(self, options, properties, storage_type):
+ if PGConfig.PG_INITDB_CMD is None:
+ raise FatalException(1, "Cannot find postgresql-setup script.")
Review Comment:
Move `FatalException` here in order to raise this exception only when `__init__` called with `createPGConfig()`.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@ambari.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ambari.apache.org
For additional commands, e-mail: dev-help@ambari.apache.org
Re: [PR] AMBARI-26311: postgresql-server should be installed even though ambari-server is configured with mysql [ambari]
Posted by "JiaLiangC (via GitHub)" <gi...@apache.org>.
JiaLiangC merged PR #3945:
URL: https://github.com/apache/ambari/pull/3945
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@ambari.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ambari.apache.org
For additional commands, e-mail: dev-help@ambari.apache.org