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 Tue, 19 Apr 2016 18:39:24 GMT
Repository: ambari
Updated Branches:
  refs/heads/trunk d4ee11cc0 -> 9ed03583b


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/9ed03583
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/9ed03583
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/9ed03583

Branch: refs/heads/trunk
Commit: 9ed03583b8bdce6be57f482cb88db62d185dd027
Parents: d4ee11c
Author: Jun Aoki <jaoki@apache.org>
Authored: Tue Apr 19 11:39:16 2016 -0700
Committer: Jun Aoki <jaoki@apache.org>
Committed: Tue Apr 19 11:39:16 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/9ed03583/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 caba53f..45dcff0 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
@@ -59,5 +59,9 @@ class HawqStandby(Script):
     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 Activate HAWQ Standby Master
Wizard
+    common.stop_component(hawq_constants.MASTER, hawq_constants.FAST)
+
 if __name__ == "__main__":
   HawqStandby().execute()


Mime
View raw message