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 e466b4e2a7
commit c198550cc7
1 changed files with 4 additions and 0 deletions

View File

@ -257,6 +257,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,