You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Sangjin Lee (JIRA)" <ji...@apache.org> on 2015/05/16 01:36:59 UTC

[jira] [Created] (HADOOP-11983) HADOOP_USER_CLASSPATH_FIRST works the opposite of what it is supposed to do

Sangjin Lee created HADOOP-11983:
------------------------------------

             Summary: HADOOP_USER_CLASSPATH_FIRST works the opposite of what it is supposed to do
                 Key: HADOOP-11983
                 URL: https://issues.apache.org/jira/browse/HADOOP-11983
             Project: Hadoop Common
          Issue Type: Bug
          Components: scripts
    Affects Versions: 3.0.0
            Reporter: Sangjin Lee


The behavior of HADOOP_USER_CLASSPATH_FIRST works the opposite of what it should do. If it is not set, HADOOP_CLASSPATH is prepended. If set, it is appended.

You can easily try out by doing something like

{noformat}
HADOOP_CLASSPATH=/Users/alice/tmp hadoop classpath
{noformat}
(HADOOP_CLASSPATH should point to an existing directory)

I think the if clause in hadoop_add_to_classpath_userpath is reversed.

This issue seems specific to the trunk.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)