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

Troubleshooting message for RunJar (bin/hadoop jar)

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.6.0
    • Component/s: util
    • Labels:
      None

      Description

      Many users get this exception when using bin/hadoop
      There are various reasons:
      HADOOP_CONF_DIR or HADOOP_HOME misconfigured.
      "hadoop jar" parameter incorrect

      So the patch displays the path of the jar it is trying to open if this fails:

      Problem while opening hadoop job jar: /home/build/hadoop-streaming.jar
      Exception in thread "main" 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:203)
      at java.util.jar.JarFile.<init>(JarFile.java:132)
      at java.util.jar.JarFile.<init>(JarFile.java:70)
      at org.apache.hadoop.util.RunJar.main(RunJar.java:80)

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              michel_tourn Michel Tourn
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: