hadoop-mapreduce-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jacob Metcalf (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (MAPREDUCE-3967) DefaultContainerExecutor cannot launch container under windows
Date Sat, 05 May 2012 14:21:50 GMT

    [ https://issues.apache.org/jira/browse/MAPREDUCE-3967?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13268972#comment-13268972

Jacob Metcalf commented on MAPREDUCE-3967:

Is it also possible to have some method for getting hold of the contents of default_container_executor.sh?
When I try to run a job under YARN I currently get:

2012-05-05 12:15:04,220 INFO org.apache.hadoop.yarn.server.nodemanager.DefaultContainerExecutor:
launchContainer: [bash, -c, /tmp/yarn/usercache/Jacob/appcache/application_1336216450048_0001/container_1336216450048_0001_01_000001/default_container_executor.sh]
2012-05-05 12:15:04,253 WARN org.apache.hadoop.yarn.server.nodemanager.DefaultContainerExecutor:
Exit code from task is : 127

I am pretty sure that the 127 is because of this JIRA - bash can't find the script. But I
imagine there are a few things that could go wrong under cygwin even if it could find it so
it would be nice to somehow see the script it is trying to execute.
> 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
> 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


View raw message