You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mapreduce-issues@hadoop.apache.org by "Xuan Gong (JIRA)" <ji...@apache.org> on 2012/12/13 19:34:16 UTC

[jira] [Commented] (MAPREDUCE-4872) MapReduce JVM launch does not use correct working directory on Windows

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

Xuan Gong commented on MAPREDUCE-4872:
--------------------------------------

Run the unix command:
sudo find . -name '*.java' -print0 | xargs -0 grep -l 'Environment.PWD'
Find these java files which contains Environment.PWD, and need to change to Environment.CD when it is WINDOWS Environment.
./hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-app/src/main/java/org/apache/hadoop/mapred/MapReduceChildJVM.java
./hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-app/src/main/java/org/apache/hadoop/mapreduce/v2/app/job/impl/TaskAttemptImpl.java
./hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-common/src/main/java/org/apache/hadoop/mapreduce/v2/util/MRApps.java
./hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/launcher/ContainerLaunch.java

                
> MapReduce JVM launch does not use correct working directory on Windows
> ----------------------------------------------------------------------
>
>                 Key: MAPREDUCE-4872
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4872
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>          Components: client
>            Reporter: Chris Nauroth
>            Assignee: Chris Nauroth
>             Fix For: trunk-win
>
>
> {{MapReduceChildJVM#getVMCommand}} sets java.io.tmpdir by using environment variable PWD as the root of the path.  On Windows, %PWD% likely will not be defined.  Instead, we need to use %CD%.  Any part of the codebase that uses {{Environment#PWD}} is likely to be impacted by this.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira