hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From naganarasimha...@apache.org
Subject hadoop git commit: YARN-5937. stop-yarn.sh is not able to gracefully stop node managers. Contributed by Weiwei Yang.
Date Tue, 10 Jan 2017 10:05:41 GMT
Repository: hadoop
Updated Branches:
  refs/heads/trunk 9594c35dc -> 41db07d53


YARN-5937. stop-yarn.sh is not able to gracefully stop node managers. Contributed by Weiwei
Yang.


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

Branch: refs/heads/trunk
Commit: 41db07d532f41fd35b11935b2bb042973831951b
Parents: 9594c35
Author: Naganarasimha <naganarasimha_gr@apache.org>
Authored: Tue Jan 10 15:35:01 2017 +0530
Committer: Naganarasimha <naganarasimha_gr@apache.org>
Committed: Tue Jan 10 15:35:01 2017 +0530

----------------------------------------------------------------------
 hadoop-yarn-project/hadoop-yarn/bin/stop-yarn.sh | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/41db07d5/hadoop-yarn-project/hadoop-yarn/bin/stop-yarn.sh
----------------------------------------------------------------------
diff --git a/hadoop-yarn-project/hadoop-yarn/bin/stop-yarn.sh b/hadoop-yarn-project/hadoop-yarn/bin/stop-yarn.sh
index 1ed52dd..f6c6b78 100755
--- a/hadoop-yarn-project/hadoop-yarn/bin/stop-yarn.sh
+++ b/hadoop-yarn-project/hadoop-yarn/bin/stop-yarn.sh
@@ -42,6 +42,14 @@ else
   exit 1
 fi
 
+# stop nodemanager
+echo "Stopping nodemanagers"
+"${HADOOP_YARN_HOME}/bin/yarn" \
+    --config "${HADOOP_CONF_DIR}" \
+    --workers \
+    --daemon stop \
+    nodemanager
+
 # stop resourceManager
 HARM=$("${HADOOP_HDFS_HOME}/bin/hdfs" getconf -confKey yarn.resourcemanager.ha.enabled 2>&-)
 if [[ ${HARM} = "false" ]]; then
@@ -67,14 +75,6 @@ else
       resourcemanager
 fi
 
-# stop nodemanager
-echo "Stopping nodemanagers"
-"${HADOOP_YARN_HOME}/bin/yarn" \
-    --config "${HADOOP_CONF_DIR}" \
-    --workers \
-    --daemon stop \
-    nodemanager
-
 # stop proxyserver
 PROXYSERVER=$("${HADOOP_HDFS_HOME}/bin/hdfs" getconf -confKey  yarn.web-proxy.address 2>&-
| cut -f1 -d:)
 if [[ -n ${PROXYSERVER} ]]; then


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org


Mime
View raw message