hadoop-mapreduce-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chuan Liu (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (MAPREDUCE-5442) $HADOOP_MAPRED_HOME/$HADOOP_CONF_DIR setting not working on Windows
Date Wed, 04 Sep 2013 18:02:56 GMT

    [ 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

Mime
View raw message