[
https://issues.apache.org/jira/browse/MAPREDUCE-3967?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13227440#comment-13227440
]
Steve Loughran commented on MAPREDUCE-3967:
-------------------------------------------
Looks like the shell path should be generated using
{{FileUtils.makeShellPath()}}.
> DefaultContainerExecutor cannot launch container under windows
> --------------------------------------------------------------
>
> Key: MAPREDUCE-3967
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-3967
> Project: Hadoop Map/Reduce
> Issue Type: Bug
> Components: nodemanager
> Affects Versions: 0.23.3
> Environment: Apache Maven 3.0.4 (r1232337; 2012-01-17 16:44:56+0800)
> Java version: 1.7.0_02, vendor: Oracle Corporation
> Java home: C:\Program Files (x86)\Java\jdk1.7.0_02\jre
> Default locale: zh_CN, platform encoding: GBK
> OS name: "windows 7", version: "6.1", arch: "x86", family: "windows"
> Reporter: Changming Sun
> Original Estimate: 72h
> Remaining Estimate: 72h
>
> DefaultContainerExecutor cannot launch container under windows, because bash
> cannot find the WRAPPER_LAUNCH_SCRIPT.
> Path wrapperScriptDst = new Path(containerWorkDir, WRAPPER_LAUNCH_SCRIPT);
> String[] command = {"bash", "-c",
> wrapperScriptDst.toUri().getPath().toString()};
> LOG.info("launchContainer: " + Arrays.toString(command));
> Suppose that the value of 'wrapperScriptDst' is
> "C:\hadoop\default_container_executor.sh"
> Then wrapperScriptDst.toUri().getPath().toString() will be
> "/C:/hadoop/default_container_executor.sh", which is a wrong path
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira