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

Hadoop Jar Error Should Be More Explanatory

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.8.0, 3.0.0-alpha1
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      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.002.patch
          0.8 kB
          Josh Elser
        2. HADOOP-12271.001.patch
          0.8 kB
          Josh Elser

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: