Hadoop Common
  1. Hadoop Common
  2. HADOOP-7626

Allow overwrite of HADOOP_CLASSPATH and HADOOP_OPTS

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.20.205.0
    • Fix Version/s: 0.20.205.0, 0.23.0
    • Component/s: scripts
    • Labels:
      None
    • Environment:

      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 "

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

        Activity

          People

          • Assignee:
            Eric Yang
            Reporter:
            Eric Yang
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development