YARN-9488. Skip YARNFeatureNotEnabledException from ClientRMService. Contributed by Prabhu Joseph

This commit is contained in:
Szilard Nemeth 2019-08-15 17:15:38 +02:00
parent 3f4f097f1f
commit 1845a83cec
1 changed files with 3 additions and 1 deletions

View File

@ -156,6 +156,7 @@ import org.apache.hadoop.yarn.exceptions.ApplicationAttemptNotFoundException;
import org.apache.hadoop.yarn.exceptions.ApplicationNotFoundException; import org.apache.hadoop.yarn.exceptions.ApplicationNotFoundException;
import org.apache.hadoop.yarn.exceptions.ContainerNotFoundException; import org.apache.hadoop.yarn.exceptions.ContainerNotFoundException;
import org.apache.hadoop.yarn.exceptions.YarnException; import org.apache.hadoop.yarn.exceptions.YarnException;
import org.apache.hadoop.yarn.exceptions.YARNFeatureNotEnabledException;
import org.apache.hadoop.yarn.factories.RecordFactory; import org.apache.hadoop.yarn.factories.RecordFactory;
import org.apache.hadoop.yarn.factory.providers.RecordFactoryProvider; import org.apache.hadoop.yarn.factory.providers.RecordFactoryProvider;
import org.apache.hadoop.yarn.ipc.RPCUtil; import org.apache.hadoop.yarn.ipc.RPCUtil;
@ -283,7 +284,8 @@ public class ClientRMService extends AbstractService implements
this.server.addTerseExceptions(ApplicationNotFoundException.class, this.server.addTerseExceptions(ApplicationNotFoundException.class,
ApplicationAttemptNotFoundException.class, ApplicationAttemptNotFoundException.class,
ContainerNotFoundException.class); ContainerNotFoundException.class,
YARNFeatureNotEnabledException.class);
// Enable service authorization? // Enable service authorization?
if (conf.getBoolean( if (conf.getBoolean(