From 082c2ab8b894e8d01b85dfa9b36df4183349c192 Mon Sep 17 00:00:00 2001 From: Karthik Kambatla Date: Mon, 16 Jun 2014 20:45:38 +0000 Subject: [PATCH] YARN-2159. Better logging in SchedulerNode#allocateContainer. (Ray Chiang via kasha) git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1603003 13f79535-47bb-0310-9956-ffa450edef68 --- hadoop-yarn-project/CHANGES.txt | 3 +++ .../yarn/server/resourcemanager/scheduler/SchedulerNode.java | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/hadoop-yarn-project/CHANGES.txt b/hadoop-yarn-project/CHANGES.txt index 1463e400c94..0ba092e2a21 100644 --- a/hadoop-yarn-project/CHANGES.txt +++ b/hadoop-yarn-project/CHANGES.txt @@ -164,6 +164,9 @@ Release 2.5.0 - UNRELEASED YARN-2125. Changed ProportionalCapacityPreemptionPolicy to log CSV in debug level. (Wangda Tan via jianhe) + YARN-2159. Better logging in SchedulerNode#allocateContainer. + (Ray Chiang via kasha) + OPTIMIZATIONS BUG FIXES diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/SchedulerNode.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/SchedulerNode.java index 9fb8d23effb..7074059ecf4 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/SchedulerNode.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/SchedulerNode.java @@ -130,9 +130,9 @@ public abstract class SchedulerNode { LOG.info("Assigned container " + container.getId() + " of capacity " + container.getResource() + " on host " + rmNode.getNodeAddress() - + ", which currently has " + numContainers + " containers, " + + ", which has " + numContainers + " containers, " + getUsedResource() + " used and " + getAvailableResource() - + " available"); + + " available after allocation"); } /**