YARN-8201. Skip stacktrace of few exception from ClientRMService. Contributed by Bilwa S T.

(cherry picked from commit cc0310a526)
This commit is contained in:
bibinchundatt 2018-05-10 09:15:46 +05:30
parent e3ff9e36df
commit b29479c93a
1 changed files with 4 additions and 0 deletions

View File

@ -265,6 +265,10 @@ public class ClientRMService extends AbstractService implements
conf.getInt(YarnConfiguration.RM_CLIENT_THREAD_COUNT, conf.getInt(YarnConfiguration.RM_CLIENT_THREAD_COUNT,
YarnConfiguration.DEFAULT_RM_CLIENT_THREAD_COUNT)); YarnConfiguration.DEFAULT_RM_CLIENT_THREAD_COUNT));
this.server.addTerseExceptions(ApplicationNotFoundException.class,
ApplicationAttemptNotFoundException.class,
ContainerNotFoundException.class);
// Enable service authorization? // Enable service authorization?
if (conf.getBoolean( if (conf.getBoolean(
CommonConfigurationKeysPublic.HADOOP_SECURITY_AUTHORIZATION, CommonConfigurationKeysPublic.HADOOP_SECURITY_AUTHORIZATION,