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 00:42:20 UTC

[jira] [Created] (YARN-728) Yarn and MR default classpath are wrong on Windows

Mostafa Elhemali created YARN-728:
-------------------------------------

             Summary: 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


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