YARN-8082. Include LocalizedResource size information in the NM download log 
for localization. Contributed by Kuhu Shukla


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

Branch: refs/heads/HDFS-12943
Commit: 54a81211ea8a03b7f6ec49b1a26960693ae9f273
Parents: dde1579
Author: Jason Lowe <jl...@apache.org>
Authored: Mon Apr 2 10:38:13 2018 -0500
Committer: Jason Lowe <jl...@apache.org>
Committed: Mon Apr 2 10:38:13 2018 -0500

----------------------------------------------------------------------
 .../containermanager/localizer/LocalizedResource.java            | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/54a81211/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/localizer/LocalizedResource.java
----------------------------------------------------------------------
diff --git 
a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/localizer/LocalizedResource.java
 
b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/localizer/LocalizedResource.java
index bd9602e..7cca7cf 100644
--- 
a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/localizer/LocalizedResource.java
+++ 
b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/localizer/LocalizedResource.java
@@ -204,8 +204,8 @@ public class LocalizedResource implements 
EventHandler<ResourceEvent> {
       if (newState != null && oldState != newState) {
         if (LOG.isDebugEnabled()) {
           LOG.debug("Resource " + resourcePath + (localPath != null ?
-              "(->" + localPath + ")": "") + " transitioned from " + oldState
-              + " to " + newState);
+              "(->" + localPath + ")": "") + " size : " + getSize()
+              + " transitioned from " + oldState + " to " + newState);
         }
       }
     } finally {


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

Reply via email to