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:
parent
aeb364d8b5
commit
9ef3b2eb60
@ -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
|
||||
|
@ -169,7 +169,7 @@ public int launchContainer(Container container,
|
||||
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 @@ private void writeLocalWrapperScript(DataOutputStream out,
|
||||
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");
|
||||
|
Loading…
Reference in New Issue
Block a user