Repository: hadoop
Updated Branches:
  refs/heads/branch-2.8 15e84fd62 -> a2d73b185


YARN-4608. Redundant code statement in WritingYarnApplications. Contributed by 
Kai Sasaki.

(cherry picked from commit d3224e2d6274daf73a103c0dbe21ba69add7ca26)
(cherry picked from commit 01cd6dce63f2ac21a52f6f2539cb222e895044eb)


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

Branch: refs/heads/branch-2.8
Commit: a2d73b185ff31c888fa36491fa721653464bb03b
Parents: 15e84fd
Author: Akira Ajisaka <[email protected]>
Authored: Fri Jan 22 02:13:02 2016 +0900
Committer: Akira Ajisaka <[email protected]>
Committed: Fri Jan 22 02:15:16 2016 +0900

----------------------------------------------------------------------
 hadoop-yarn-project/CHANGES.txt                              | 3 +++
 .../src/site/markdown/WritingYarnApplications.md             | 8 +++-----
 2 files changed, 6 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/a2d73b18/hadoop-yarn-project/CHANGES.txt
----------------------------------------------------------------------
diff --git a/hadoop-yarn-project/CHANGES.txt b/hadoop-yarn-project/CHANGES.txt
index 90a0d9b..918ebb3 100644
--- a/hadoop-yarn-project/CHANGES.txt
+++ b/hadoop-yarn-project/CHANGES.txt
@@ -1158,6 +1158,9 @@ Release 2.8.0 - UNRELEASED
     YARN-4557. Fix improper Queues sorting in PartitionedQueueComparator
     when accessible-node-labels=*. (Naganarasimha G R via wangda)
 
+    YARN-4608. Redundant code statement in WritingYarnApplications.
+    (Kai Sasaki via aajisaka)
+
 Release 2.7.3 - UNRELEASED
 
   INCOMPATIBLE CHANGES

http://git-wip-us.apache.org/repos/asf/hadoop/blob/a2d73b18/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-site/src/site/markdown/WritingYarnApplications.md
----------------------------------------------------------------------
diff --git 
a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-site/src/site/markdown/WritingYarnApplications.md
 
b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-site/src/site/markdown/WritingYarnApplications.md
index d5a7a17..1aaec18 100644
--- 
a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-site/src/site/markdown/WritingYarnApplications.md
+++ 
b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-site/src/site/markdown/WritingYarnApplications.md
@@ -208,7 +208,7 @@ if (debugFlag) {
 vargs.add("1>" + ApplicationConstants.LOG_DIR_EXPANSION_VAR + 
"/AppMaster.stdout");
 vargs.add("2>" + ApplicationConstants.LOG_DIR_EXPANSION_VAR + 
"/AppMaster.stderr");
 
-// Get final commmand
+// Get final command
 StringBuilder command = new StringBuilder();
 for (CharSequence str : vargs) {
   command.append(str).append(" ");
@@ -339,7 +339,7 @@ ApplicationAttemptId appAttemptID = 
containerId.getApplicationAttemptId();
   nmClientAsync.start();
 ```
 
-* The AM has to emit heartbeats to the RM to keep it informed that the AM is 
alive and still running. The timeout expiry interval at the RM is defined by a 
config setting accessible via `YarnConfiguration.RM_AM_EXPIRY_INTERVAL_MS` with 
the default being defined by 
`YarnConfiguration.DEFAULT_RM_AM_EXPIRY_INTERVAL_MS`. The ApplicationMaster 
needs to register itself with the ResourceManager to start hearbeating.
+* The AM has to emit heartbeats to the RM to keep it informed that the AM is 
alive and still running. The timeout expiry interval at the RM is defined by a 
config setting accessible via `YarnConfiguration.RM_AM_EXPIRY_INTERVAL_MS` with 
the default being defined by 
`YarnConfiguration.DEFAULT_RM_AM_EXPIRY_INTERVAL_MS`. The ApplicationMaster 
needs to register itself with the ResourceManager to start heartbeating.
 
 ```java
 // Register self with ResourceManager
@@ -386,8 +386,6 @@ LOG.info("Received " + previousAMRunningContainers.size()
 ```java
 List<Container> previousAMRunningContainers =
     response.getContainersFromPreviousAttempts();
-List<Container> previousAMRunningContainers =
-    response.getContainersFromPreviousAttempts();
 LOG.info("Received " + previousAMRunningContainers.size()
     + " previous AM's running containers on AM registration.");
 
@@ -486,7 +484,7 @@ vargs.add(shellArgs);
 vargs.add("1>" + ApplicationConstants.LOG_DIR_EXPANSION_VAR + "/stdout");
 vargs.add("2>" + ApplicationConstants.LOG_DIR_EXPANSION_VAR + "/stderr");
 
-// Get final commmand
+// Get final command
 StringBuilder command = new StringBuilder();
 for (CharSequence str : vargs) {
   command.append(str).append(" ");

Reply via email to