From cc0310a5266c8b8351f338f5fc8087a203c68cac Mon Sep 17 00:00:00 2001 From: bibinchundatt Date: Thu, 10 May 2018 09:15:46 +0530 Subject: [PATCH] YARN-8201. Skip stacktrace of few exception from ClientRMService. Contributed by Bilwa S T. --- .../hadoop/yarn/server/resourcemanager/ClientRMService.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/ClientRMService.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/ClientRMService.java index 55a3f0b131a..feaa5cb5b91 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/ClientRMService.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/ClientRMService.java @@ -265,6 +265,10 @@ public class ClientRMService extends AbstractService implements conf.getInt(YarnConfiguration.RM_CLIENT_THREAD_COUNT, YarnConfiguration.DEFAULT_RM_CLIENT_THREAD_COUNT)); + this.server.addTerseExceptions(ApplicationNotFoundException.class, + ApplicationAttemptNotFoundException.class, + ContainerNotFoundException.class); + // Enable service authorization? if (conf.getBoolean( CommonConfigurationKeysPublic.HADOOP_SECURITY_AUTHORIZATION,