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

Hadoop Jar Error Should Be More Explanatory

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.8.0, 3.0.0-alpha1
    • None
    • None
    • Reviewed

    Description

      When the "hadoop jar" command is used and the JAR does not exist, the error message says "Not a valid JAR: ...". The message should say that the JAR does not exist. This error makes it sound like the JAR is corrupt or is not a JAR format.

      https://github.com/apache/hadoop/blob/c1d50a91f7c05e4aaf4655380c8dcd11703ff158/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/RunJar.java#L151

      Attachments

        1. HADOOP-12271.001.patch
          0.8 kB
          Josh Elser
        2. HADOOP-12271.002.patch
          0.8 kB
          Josh Elser

        Activity

          People

            elserj Josh Elser
            eljefe6aa Jesse Anderson
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: