You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-issues@hadoop.apache.org by "Mostafa Elhemali (JIRA)" <ji...@apache.org> on 2013/05/29 01:00:22 UTC
[jira] [Updated] (YARN-728) Yarn and MR default classpath are wrong
on Windows
[ https://issues.apache.org/jira/browse/YARN-728?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mostafa Elhemali updated YARN-728:
----------------------------------
Attachment: YARN-728.patch
I've attached a patch in which I delete the default values in yarn-default and mapred-default, since I can't think of a way to encode the dynamic behavior here (these values are in the code so deleting them causes the right thing to happen). The patch also has a fix for the MRJobConfig code to use the correct default based on platform.
> Yarn and MR default classpath are wrong on Windows
> --------------------------------------------------
>
> Key: YARN-728
> URL: https://issues.apache.org/jira/browse/YARN-728
> Project: Hadoop YARN
> Issue Type: Bug
> Affects Versions: 3.0.0
> Environment: Windows
> Reporter: Mostafa Elhemali
> Attachments: YARN-728.patch
>
>
> On Windows, the environment variables need to be used as %X% not $X as in Linux/Unix. This is handled in code in Yarn in the ApplicationConstants$Environment.$() method. However there are two problems in Windows today where this doesn't work:
> # In yarn-default.xml and mapred-default.xml, the yarn.application.classpath and mapreduce.application.classpath are defined with hard-coded values that use the Linux form (e.g. $HADOOP_CONF_HOME).
> # In MRJobConfig, the DEFAULT_MAPREDUCE_APPLICATION_CLASSPATH constant is defined using the Linux form for HADOOP_MAPRED_HOME: $HADOOP_MAPRED_HOME.
> This causes MR applications to fail on Windows because it can't find the MRAppMaster class because the classpath is wrong.
--
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