diff --git a/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 b/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 index 41e26d44713..559941d66c0 100644 --- a/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 +++ b/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 @@ -1342,11 +1342,11 @@ public class ContainerLaunch implements Callable { // find will follow symlinks outside the work dir if such sylimks exist // (like public/app local resources) line("echo \"find -L . -maxdepth 5 -ls:\" 1>>\"", output.toString(), - "\""); - line("find -L . -maxdepth 5 -ls 1>>\"", output.toString(), "\""); + "\" || :"); + line("find -L . -maxdepth 5 -ls 1>>\"", output.toString(), "\" || :"); line("echo \"broken symlinks(find -L . -maxdepth 5 -type l -ls):\" 1>>\"", - output.toString(), "\""); - line("find -L . -maxdepth 5 -type l -ls 1>>\"", output.toString(), "\""); + output.toString(), "\" || :"); + line("find -L . -maxdepth 5 -type l -ls 1>>\"", output.toString(), "\" || :"); } @Override