Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-1294

HIVE_AUX_JARS_PATH interferes with startup of Hive Web Interface

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 0.5.0
    • 0.6.0
    • Web UI
    • None
    • Reviewed

    Description

      The Hive Webserver fails to startup with the following error message, if HIVE_AUX_JARS_PATH environment variable is set (works fine if unset).

      $ build/dist/bin/hive --service hwi
      Exception in thread "main" java.io.IOException: Error opening job jar: -libjars
      at org.apache.hadoop.util.RunJar.main(RunJar.java:90)
      Caused by: java.util.zip.ZipException: error in opening zip file
      at java.util.zip.ZipFile.open(Native Method)
      at java.util.zip.ZipFile.<init>(ZipFile.java:114)
      at java.util.jar.JarFile.<init>(JarFile.java:133)
      at java.util.jar.JarFile.<init>(JarFile.java:70)
      at org.apache.hadoop.util.RunJar.main(RunJar.java:88)

      Slightly modifying the command line to launch hadoop in hwi.sh solves the problem:

      $ diff bin/ext/hwi.sh /tmp/new-hwi.sh
      28c28
      < exec $HADOOP jar $AUX_JARS_CMD_LINE ${HWI_JAR_FILE} $CLASS $HIVE_OPTS "$@"

      > exec $HADOOP jar ${HWI_JAR_FILE} $CLASS $AUX_JARS_CMD_LINE $HIVE_OPTS "$@"

      Attachments

        1. hive-1294.patch.txt
          1 kB
          Edward Capriolo

        Activity

          People

            appodictic Edward Capriolo
            dilipjoseph Dilip Joseph
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: