From 0ecba04727b5c31182d29511646c8d3e6441300f Mon Sep 17 00:00:00 2001 From: Arun Murthy Date: Wed, 7 Sep 2011 05:54:25 +0000 Subject: [PATCH] MAPREDUCE-2938. Log application submission failure in CapacityScheduler git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1166006 13f79535-47bb-0310-9956-ffa450edef68 --- hadoop-mapreduce-project/CHANGES.txt | 3 +++ .../resourcemanager/scheduler/capacity/CapacityScheduler.java | 2 ++ 2 files changed, 5 insertions(+) diff --git a/hadoop-mapreduce-project/CHANGES.txt b/hadoop-mapreduce-project/CHANGES.txt index 59feb382c5..a5b5a08e09 100644 --- a/hadoop-mapreduce-project/CHANGES.txt +++ b/hadoop-mapreduce-project/CHANGES.txt @@ -1216,6 +1216,9 @@ Release 0.23.0 - Unreleased MAPREDUCE-2800. Set final progress for tasks to ensure all task information is correctly logged to JobHistory. (Siddharth Seth via acmurthy) + MAPREDUCE-2938. Log application submission failure in CapacityScheduler. + (acmurthy) + Release 0.22.0 - Unreleased INCOMPATIBLE CHANGES diff --git a/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/capacity/CapacityScheduler.java b/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/capacity/CapacityScheduler.java index 21ae4ac666..4fff1ff1a4 100644 --- a/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/capacity/CapacityScheduler.java +++ b/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/capacity/CapacityScheduler.java @@ -355,6 +355,8 @@ synchronized Queue getQueue(String queueName) { try { queue.submitApplication(SchedulerApp, user, queueName); } catch (AccessControlException ace) { + LOG.info("Failed to submit application " + applicationAttemptId + + " to queue " + queueName + " from user " + user, ace); this.rmContext.getDispatcher().getEventHandler().handle( new RMAppAttemptRejectedEvent(applicationAttemptId, ace.toString()));