From 7d623343879ce9a8f8e64601024d018efc02794c Mon Sep 17 00:00:00 2001 From: Eric Yang Date: Fri, 7 Sep 2018 19:46:15 -0400 Subject: [PATCH] YARN-8751. Reduce conditions that mark node manager as unhealthy. Contributed by Craig Condit --- .../server/nodemanager/LinuxContainerExecutor.java | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/LinuxContainerExecutor.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/LinuxContainerExecutor.java index f75ead2e0dd..b3c9d5ff8b8 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/LinuxContainerExecutor.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/LinuxContainerExecutor.java @@ -611,17 +611,7 @@ public class LinuxContainerExecutor extends ContainerExecutor { if (exitCode == ExitCode.INVALID_CONTAINER_EXEC_PERMISSIONS.getExitCode() || exitCode == - ExitCode.INVALID_CONFIG_FILE.getExitCode() || - exitCode == - ExitCode.COULD_NOT_CREATE_SCRIPT_COPY.getExitCode() || - exitCode == - ExitCode.COULD_NOT_CREATE_CREDENTIALS_FILE.getExitCode() || - exitCode == - ExitCode.COULD_NOT_CREATE_WORK_DIRECTORIES.getExitCode() || - exitCode == - ExitCode.COULD_NOT_CREATE_APP_LOG_DIRECTORIES.getExitCode() || - exitCode == - ExitCode.COULD_NOT_CREATE_TMP_DIRECTORIES.getExitCode()) { + ExitCode.INVALID_CONFIG_FILE.getExitCode()) { throw new ConfigurationException( "Linux Container Executor reached unrecoverable exception", e); }