Procházet zdrojové kódy

YARN-7737. prelaunch.err file not found exception on container failure. Contributed by Keqiu Hu.

(cherry picked from commit fa8cf4d1b4896a602dc383d5e266768392a9790c)
(cherry picked from commit 83a4f92a3f0c0134709bcb0a534e31b7c7056643)
(cherry picked from commit e9a338ff644e4ac06f09762b30e90af8027377d7)
Zhe Zhang před 7 roky
rodič
revize
258fb117d2

+ 1 - 1
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/launcher/ContainerLaunch.java

@@ -273,7 +273,7 @@ public class ContainerLaunch implements Callable<Integer> {
         // Write out the environment
         exec.writeLaunchEnv(containerScriptOutStream, environment,
             localResources, launchContext.getCommands(),
-            new Path(containerLogDirs.get(0)), user);
+            containerLogDir, user);
       }
       // /////////// End of writing out container-script