Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Duplicate
-
3.0.0-alpha1
-
None
-
None
-
None
-
Windows
Description
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.
Attachments
Attachments
Issue Links
- duplicates
-
YARN-1138 yarn.application.classpath is set to point to $HADOOP_CONF_DIR etc., which does not work on Windows
- Closed