Repository: ambari Updated Branches: refs/heads/branch-2.5 7d1850fd3 -> 54d7eb5a4
AMBARI-20897. JDBC Driver Class and URL not updated automatically while selecting each database type. (XIWAMG) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/54d7eb5a Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/54d7eb5a Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/54d7eb5a Branch: refs/heads/branch-2.5 Commit: 54d7eb5a4791e9cfce1a503a813f38e6c11ecc3f Parents: 7d1850f Author: Xi Wang <xiw...@apache.org> Authored: Fri Apr 28 15:08:38 2017 -0700 Committer: Xi Wang <xiw...@apache.org> Committed: Fri Apr 28 16:53:33 2017 -0700 ---------------------------------------------------------------------- .../src/main/resources/stacks/HDP/2.6/services/stack_advisor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/54d7eb5a/ambari-server/src/main/resources/stacks/HDP/2.6/services/stack_advisor.py ---------------------------------------------------------------------- diff --git a/ambari-server/src/main/resources/stacks/HDP/2.6/services/stack_advisor.py b/ambari-server/src/main/resources/stacks/HDP/2.6/services/stack_advisor.py index 7f581da..ad44033 100644 --- a/ambari-server/src/main/resources/stacks/HDP/2.6/services/stack_advisor.py +++ b/ambari-server/src/main/resources/stacks/HDP/2.6/services/stack_advisor.py @@ -58,8 +58,8 @@ class HDP26StackAdvisor(HDP25StackAdvisor): beaconServerHost = self.getHostWithComponent('BEACON', 'BEACON_SERVER', services, hosts) beaconDBConnectionURL = beaconEnvProperties['beacon_store_url'] protocol = self.getProtocol(beaconEnvProperties['beacon_database']) - oldSchemaName = self.getOldValue(services, "beacon-env", "beacon_store_db_name") - oldDBType = self.getOldValue(services, "beacon-env", "beacon_database") + oldSchemaName = getOldValue(self, services, "beacon-env", "beacon_store_db_name") + oldDBType = getOldValue(self, services, "beacon-env", "beacon_database") # under these if constructions we are checking if beacon server hostname available, # if it's default db connection url with "localhost" or if schema name was changed or if db type was changed (only for db type change from default mysql to existing mysql) # or if protocol according to current db type differs with protocol in db connection url(other db types changes)