ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rz...@apache.org
Subject [48/51] [abbrv] ambari git commit: NameNode fixes for PayPal to add sleep during restart and longer retries (alejandro)
Date Mon, 27 Mar 2017 22:57:58 GMT
NameNode fixes for PayPal to add sleep during restart and longer retries (alejandro)

Change-Id: I960a60358dd87ce4b4bc79027e59697f456649ed


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

Branch: refs/heads/AMBARI-2.4.2.16
Commit: ed301a367f5af2bee7ffb1f712d903df8d89c4cf
Parents: e9e5dbc
Author: Alejandro Fernandez <afernandez@hortonworks.com>
Authored: Thu Mar 23 10:19:42 2017 -0700
Committer: Alejandro Fernandez <afernandez@hortonworks.com>
Committed: Thu Mar 23 10:19:42 2017 -0700

----------------------------------------------------------------------
 .../HDFS/2.1.0.2.0/package/scripts/hdfs_namenode.py                | 2 +-
 .../common-services/HDFS/2.1.0.2.0/package/scripts/namenode.py     | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/ed301a36/ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/scripts/hdfs_namenode.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/scripts/hdfs_namenode.py
b/ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/scripts/hdfs_namenode.py
index 6e0f5dc..202cc2c 100644
--- a/ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/scripts/hdfs_namenode.py
+++ b/ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/scripts/hdfs_namenode.py
@@ -518,7 +518,7 @@ def is_namenode_bootstrapped(params):
   return marked
 
 
-@retry(times=5, sleep_time=5, backoff_factor=2, err_class=Fail)
+@retry(times=600, sleep_time=5, backoff_factor=2, err_class=Fail)
 def is_this_namenode_active():
   """
   Gets whether the current NameNode is Active. This function will wait until the NameNode
is

http://git-wip-us.apache.org/repos/asf/ambari/blob/ed301a36/ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/scripts/namenode.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/scripts/namenode.py
b/ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/scripts/namenode.py
index 3aac04f..c65e74a 100644
--- a/ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/scripts/namenode.py
+++ b/ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/scripts/namenode.py
@@ -116,6 +116,8 @@ class NameNode(Script):
       else:
         raise Fail("Rolling Upgrade - dfs.ha.automatic-failover.enabled must be enabled to
perform a rolling restart")
     namenode(action="stop", hdfs_binary=hdfs_binary, upgrade_type=upgrade_type, env=env)
+    # Sleep for 2 mins to allow JVM to be stopped cleanly.
+    time.sleep(120)
 
   def status(self, env):
     import status_params


Mime
View raw message