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 "Chuan Liu (JIRA)" <ji...@apache.org> on 2013/09/04 20:02:56 UTC

[jira] [Commented] (MAPREDUCE-5442) $HADOOP_MAPRED_HOME/$HADOOP_CONF_DIR setting not working on Windows

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

Chuan Liu commented on MAPREDUCE-5442:
--------------------------------------

[~yingdachen], can we make DEFAULT_MAPREDUCE_APPLICATION_CLASSPATH have different values for different OSes instead of creating two constants as in the following code?

{code:java}
-  public static final String[] DEFAULT_MAPREDUCE_APPLICATION_CLASSPATH = {
-      "$HADOOP_MAPRED_HOME/share/hadoop/mapreduce/*",
-      "$HADOOP_MAPRED_HOME/share/hadoop/mapreduce/lib/*",
-  };
+  public static final String 
+  DEFAULT_MAPREDUCE_APPLICATION_CLASSPATH = 
+  "$HADOOP_MAPRED_HOME/share/hadoop/mapreduce/*,"
+  + "$HADOOP_MAPRED_HOME/share/hadoop/mapreduce/lib/*";
+  
+  /**
+   * Default CLASSPATH for all YARN MapReduce applications on Windows.
+   */
+  public static final String 
+  DEFAULT_MAPREDUCE_APPLICATION_CLASSPATH_ON_WINDOWS =
+  "%HADOOP_MAPRED_HOME%\\share\\hadoop\\mapreduce\\*," 
+  + "%HADOOP_MAPRED_HOME%\\share\\hadoop\\mapreduce\\lib\\*";
{code}
                
> $HADOOP_MAPRED_HOME/$HADOOP_CONF_DIR setting not working on Windows
> -------------------------------------------------------------------
>
>                 Key: MAPREDUCE-5442
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-5442
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>            Reporter: Yingda Chen
>            Assignee: Yingda Chen
>         Attachments: MAPREDUCE-5442.patch
>
>
> Currently the mapred-default.xml has "mapreduce.application.classpath" entry set to
> $HADOOP_MAPRED_HOME/share/hadoop/mapreduce/,$HADOOP_MAPRED_HOME/share/hadoop/mapreduce/lib/
> which is problematic on Windows since the path does not work on Windows OS.
> Additionally, the yarn-default.xml has "yarn.application.classpath" entry that has similar problem, and is currently being tracked by YARN-1138

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