MAPREDUCE-2374. "Text File Busy" errors launching MR tasks. Contributed by Andy Isaacson.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1376632 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Aaron Myers 2012-08-23 18:24:13 +00:00
parent aeb364d8b5
commit 9ef3b2eb60
2 changed files with 4 additions and 2 deletions

View File

@ -20,6 +20,9 @@ Branch-2 ( Unreleased changes )
BUG FIXES
MAPREDUCE-2374. "Text File Busy" errors launching MR tasks. (Andy Isaacson
via atm)
Release 2.1.0-alpha - Unreleased
INCOMPATIBLE CHANGES

View File

@ -169,7 +169,7 @@ public class DefaultContainerExecutor extends ContainerExecutor {
ContainerExecutor.TASK_LAUNCH_SCRIPT_PERMISSION);
// Setup command to run
String[] command = {"bash", "-c",
String[] command = {"bash",
wrapperScriptDst.toUri().getPath().toString()};
LOG.info("launchContainer: " + Arrays.toString(command));
shExec = new ShellCommandExecutor(
@ -211,7 +211,6 @@ public class DefaultContainerExecutor extends ContainerExecutor {
sb.append("/bin/mv -f " + pidFilePath + ".tmp " + pidFilePath + "\n");
sb.append(ContainerExecutor.isSetsidAvailable? "exec setsid" : "exec");
sb.append(" /bin/bash ");
sb.append("-c ");
sb.append("\"");
sb.append(launchScriptDst);
sb.append("\"\n");