YARN-1295. In UnixLocalWrapperScriptBuilder, using bash -c can cause Text file busy errors. (Sandy Ryza)
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-2@1532533 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
ea64a5a48d
commit
3b0a6e6edd
|
@ -102,6 +102,9 @@ Release 2.2.1 - UNRELEASED
|
||||||
YARN-1259. In Fair Scheduler web UI, queue num pending and num active apps
|
YARN-1259. In Fair Scheduler web UI, queue num pending and num active apps
|
||||||
switched. (Robert Kanter via Sandy Ryza)
|
switched. (Robert Kanter via Sandy Ryza)
|
||||||
|
|
||||||
|
YARN-1295. In UnixLocalWrapperScriptBuilder, using bash -c can cause Text
|
||||||
|
file busy errors (Sandy Ryza)
|
||||||
|
|
||||||
Release 2.2.0 - 2013-10-13
|
Release 2.2.0 - 2013-10-13
|
||||||
|
|
||||||
INCOMPATIBLE CHANGES
|
INCOMPATIBLE CHANGES
|
||||||
|
|
|
@ -277,7 +277,7 @@ public class DefaultContainerExecutor extends ContainerExecutor {
|
||||||
pout.println("echo $$ > " + pidFile.toString() + ".tmp");
|
pout.println("echo $$ > " + pidFile.toString() + ".tmp");
|
||||||
pout.println("/bin/mv -f " + pidFile.toString() + ".tmp " + pidFile);
|
pout.println("/bin/mv -f " + pidFile.toString() + ".tmp " + pidFile);
|
||||||
String exec = Shell.isSetsidAvailable? "exec setsid" : "exec";
|
String exec = Shell.isSetsidAvailable? "exec setsid" : "exec";
|
||||||
pout.println(exec + " /bin/bash -c \"" +
|
pout.println(exec + " /bin/bash \"" +
|
||||||
launchDst.toUri().getPath().toString() + "\"");
|
launchDst.toUri().getPath().toString() + "\"");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue