ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ja...@apache.org
Subject ambari git commit: AMBARI-15926: HAWQ activate standby wizard fails after port number change but before restart.
Date Mon, 18 Apr 2016 20:58:08 GMT
Repository: ambari
Updated Branches:
  refs/heads/branch-2.2 997aa90d6 -> 980a4d946


AMBARI-15926: HAWQ activate standby wizard fails after port number change but before restart.


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

Branch: refs/heads/branch-2.2
Commit: 980a4d94686446be1bd04ec67cf74f9ec88762bb
Parents: 997aa90
Author: Jun Aoki <jaoki@apache.org>
Authored: Mon Apr 18 13:57:59 2016 -0700
Committer: Jun Aoki <jaoki@apache.org>
Committed: Mon Apr 18 13:57:59 2016 -0700

----------------------------------------------------------------------
 .../common-services/HAWQ/2.0.0/package/scripts/hawqstandby.py    | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/980a4d94/ambari-server/src/main/resources/common-services/HAWQ/2.0.0/package/scripts/hawqstandby.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/common-services/HAWQ/2.0.0/package/scripts/hawqstandby.py
b/ambari-server/src/main/resources/common-services/HAWQ/2.0.0/package/scripts/hawqstandby.py
index e2114d8..cdc58c1 100644
--- a/ambari-server/src/main/resources/common-services/HAWQ/2.0.0/package/scripts/hawqstandby.py
+++ b/ambari-server/src/main/resources/common-services/HAWQ/2.0.0/package/scripts/hawqstandby.py
@@ -58,6 +58,10 @@ class HawqStandby(Script):
     import utils
     Logger.info("Activating HAWQ standby...")
     utils.exec_hawq_operation(hawq_constants.ACTIVATE, "{0} -a -M {1} -v --ignore-bad-hosts".format(hawq_constants.STANDBY,
hawq_constants.FAST))
+
+    # Stop the newly become master as the process might be running with an old port,
+    # which would cause a failure Start HAWQ Service step in Activte HAWQ Standby Master
Wizard
+    common.stop_component(hawq_constants.MASTER, hawq_constants.FAST)
     
 if __name__ == "__main__":
   HawqStandby().execute()


Mime
View raw message