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

Allow overwrite of HADOOP_CLASSPATH and HADOOP_OPTS

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.20.205.0
    • 0.20.205.0, 0.23.0
    • scripts
    • None
    • Java, Linux

    Description

      Quote email from Ashutosh Chauhan:

      There is a bug in hadoop-env.sh which prevents hcatalog server to start in secure settings. Instead of adding classpath, it overrides them. I was not able to verify where the bug belongs to, in HMS or in hadoop scripts. Looks like hadoop-env.sh is generated from hadoop-env.sh.template in installation process by HMS. Hand crafted patch follows:

      - export HADOOP_CLASSPATH=$f

      +export HADOOP_CLASSPATH=${HADOOP_CLASSPATH}:$f

      -export HADOOP_OPTS="-Djava.net.preferIPv4Stack=true "

      +export HADOOP_OPTS="${HADOOP_OPTS} -Djava.net.preferIPv4Stack=true "

      Attachments

        1. HADOOP-7626.patch
          1.0 kB
          Eric Yang
        2. HADOOP-7626-trunk.patch
          1 kB
          Eric Yang

        Activity

          People

            eyang Eric Yang
            eyang Eric Yang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: