[ https://issues.apache.org/jira/browse/MAPREDUCE-6454?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14707401#comment-14707401 ]
Allen Wittenauer commented on MAPREDUCE-6454: --------------------------------------------- Here's a test you can do to prove my point. $ echo "HADOOP_CLASSPATH=/tmp" >> $HADOOP_CONF_DIR/hadoop-env.sh $ hadoop classpath You should see /tmp $ HADOOP_CLASSPATH=/etc hadoop classpath You'll still see /tmp. You won't see /etc. (Well, unless your classpath is really weird already.) > MapReduce doesn't set the HADOOP_CLASSPATH for jar lib in distributed cache. > ---------------------------------------------------------------------------- > > Key: MAPREDUCE-6454 > URL: https://issues.apache.org/jira/browse/MAPREDUCE-6454 > Project: Hadoop Map/Reduce > Issue Type: Bug > Reporter: Junping Du > Assignee: Junping Du > Priority: Critical > Fix For: 2.7.2, 2.6.2 > > Attachments: MAPREDUCE-6454-v2.1.patch, MAPREDUCE-6454-v2.patch, > MAPREDUCE-6454-v3.1.patch, MAPREDUCE-6454-v3.patch, MAPREDUCE-6454.patch > > > We already set lib jars on distributed-cache to CLASSPATH. However, in some > corner cases (like: MR local mode, Hive Map side local join, etc.), we need > these jars on HADOOP_CLASSPATH so hadoop scripts can take it in launching > runjar process. -- This message was sent by Atlassian JIRA (v6.3.4#6332)