Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-9450

HADOOP_USER_CLASSPATH_FIRST is not honored; CLASSPATH is PREpended instead of APpended

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1-win, 2.1.0-beta, 1.3.0
    • Component/s: scripts
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      On line 133 of the hadoop shell wrapper, CLASSPATH is set as:

      CLASSPATH=${CLASSPATH}:${HADOOP_CLASSPATH}

      Notice that the built-up CLASSPATH, along with all the libs and unwanted JARS are pre-pended BEFORE the user's HADOOP_CLASSPATH. Therefore there is no way to put your own JARs in front of those that the hadoop wrapper script sets.

      We propose a patch that reverses this order. Failing that, we would like to add a command line option to override this behavior and enable a user's JARs to be found before the wrong ones in the Hadoop library paths.

      We always welcome your opinions.

        Attachments

        1. HADOOP-9450-branch-2.patch
          2 kB
          Harsh J
        2. HADOOP-9450-branch-1-win.patch
          2 kB
          Chris Nauroth
        3. HADOOP-9450-branch-1.patch
          1 kB
          Chris Nauroth
        4. HADOOP-9450.patch
          3 kB
          Harsh J
        5. HADOOP-9450.patch
          3 kB
          Chris Nauroth

          Issue Links

            Activity

              People

              • Assignee:
                qwertymaniac Harsh J
                Reporter:
                mfw@wyle.org Mitch Wyle
              • Votes:
                0 Vote for this issue
                Watchers:
                10 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: