incubator-ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject git commit: AMBARI-3349 upgradestack script for oracle uses incorrect parameters (dsen)
Date Thu, 26 Sep 2013 17:09:07 GMT
Updated Branches:
  refs/heads/trunk 6df878b7d -> d0735e9cb


AMBARI-3349 upgradestack script for oracle uses incorrect parameters (dsen)


Project: http://git-wip-us.apache.org/repos/asf/incubator-ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ambari/commit/d0735e9c
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ambari/tree/d0735e9c
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ambari/diff/d0735e9c

Branch: refs/heads/trunk
Commit: d0735e9cb9b3f57617112a554cce355ecd71cbc5
Parents: 6df878b
Author: Dmitry Sen <dsen@hortonworks.com>
Authored: Thu Sep 26 20:08:36 2013 +0300
Committer: Dmitry Sen <dsen@hortonworks.com>
Committed: Thu Sep 26 20:08:36 2013 +0300

----------------------------------------------------------------------
 ambari-server/src/main/python/ambari-server.py | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/d0735e9c/ambari-server/src/main/python/ambari-server.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/python/ambari-server.py b/ambari-server/src/main/python/ambari-server.py
index b3be818..d6603e3 100755
--- a/ambari-server/src/main/python/ambari-server.py
+++ b/ambari-server/src/main/python/ambari-server.py
@@ -335,7 +335,7 @@ ORACLE_EXEC_ARGS = "-S '{0}/{1}@(description=(address=(protocol=TCP)(host={2})(p
 MYSQL_EXEC_ARGS = "--host={0} --port={1} --user={2} --password={3} {4} " \
                  "-e\"set @schema=\'{4}\'; set @username=\'{2}\'; source {5};\""
 
-ORACLE_UPGRADE_STACK_ARGS = "-S '{0}/{1}@(description=(address=(protocol=TCP)(host={2})(port={3}))(connect_data=({6}={4})))'
@{5} {0} {7}"
+ORACLE_UPGRADE_STACK_ARGS = "-S '{0}/{1}@(description=(address=(protocol=TCP)(host={2})(port={3}))(connect_data=({6}={4})))'
@{5} {7} {8}"
 
 JDBC_PATTERNS = {"oracle":"*ojdbc*.jar", "mysql":"*mysql*.jar"}
 DATABASE_FULL_NAMES = {"oracle":"Oracle", "mysql":"MySQL", "postgres":"PostgreSQL"}
@@ -1284,6 +1284,7 @@ def remote_stack_upgrade(args, scriptPath, stackId):
       print_info_msg("using SERVICE_NAME instead of SID for Oracle")
       sid_or_sname = "service_name"
 
+    stack_name, stack_version = stackId.split(STACK_NAME_VER_SEP)
     retcode, out, err = run_in_shell('{0} {1}'.format(tool, ORACLE_UPGRADE_STACK_ARGS.format(
       args.database_username,
       args.database_password,
@@ -1292,7 +1293,8 @@ def remote_stack_upgrade(args, scriptPath, stackId):
       args.database_name,
       scriptPath,
       sid_or_sname,
-      stackId
+      stack_name,
+      stack_version
     )))
     return retcode, out, err
 


Mime
View raw message