hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Bieniosek (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HADOOP-1114) bin/hadoop script clobbers CLASSPATH
Date Tue, 13 Mar 2007 00:29:09 GMT

    [ https://issues.apache.org/jira/browse/HADOOP-1114?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12480234
] 

Michael Bieniosek commented on HADOOP-1114:
-------------------------------------------

Here's my proposed patch:

--- bin/hadoop.orig
+++ bin/hadoop
@@ -74,7 +74,8 @@
 fi
 
 # CLASSPATH initially contains $HADOOP_CONF_DIR
-CLASSPATH="${HADOOP_CONF_DIR}"
+# respect previously set CLASSPATH
+CLASSPATH="$CLASSPATH:${HADOOP_CONF_DIR}"
 CLASSPATH=${CLASSPATH}:$JAVA_HOME/lib/tools.jar
 
 # for developers, add Hadoop classes to CLASSPATH

> bin/hadoop script clobbers CLASSPATH
> ------------------------------------
>
>                 Key: HADOOP-1114
>                 URL: https://issues.apache.org/jira/browse/HADOOP-1114
>             Project: Hadoop
>          Issue Type: Bug
>          Components: scripts
>    Affects Versions: 0.12.0
>            Reporter: Michael Bieniosek
>            Priority: Minor
>
> The bin/hadoop script distributed with hadoop clobbers the user's CLASSPATH.  This prevents
ad-hoc appending to the CLASSPATH.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message