Skip to content

Commit 061ff5d

Browse files
committed
YARN-11709. NodeManager should be shut down or blacklisted when it cannot run program /var/lib/yarn-ce/bin/container-executor
1 parent 4525c7e commit 061ff5d

File tree

1 file changed

+4
-2
lines changed
  • hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager

1 file changed

+4
-2
lines changed

hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/LinuxContainerExecutor.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -451,8 +451,10 @@ public void startLocalizer(LocalizerStartContext ctx)
451451

452452
} catch (PrivilegedOperationException e) {
453453
int exitCode = e.getExitCode();
454-
LOG.warn("Exit code from container {} startLocalizer is : {}",
455-
locId, exitCode, e);
454+
LOG.error("Unrecoverable issue occurred. Marking the node as unhealthy to prevent "
455+
+ "further containers to get scheduled on the node and cause application failures. " +
456+
"Exit code from the container " + locId + "startLocalizer is : " + exitCode, e);
457+
nmContext.getNodeStatusUpdater().reportException(e);
456458

457459
throw new IOException("Application " + appId + " initialization failed" +
458460
" (exitCode=" + exitCode + ") with output: " + e.getOutput(), e);

0 commit comments

Comments
 (0)