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/trunk@1532532 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
98b29a3621
commit
6a55ed333a
@ -117,6 +117,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 void writeLocalWrapperScript(Path launchDst, Path pidFile,
|
|||||||
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
Block a user