You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Josh Elser (JIRA)" <ji...@apache.org> on 2015/07/30 03:52:04 UTC

[jira] [Updated] (HADOOP-12271) Hadoop Jar Error Should Be More Explanatory

     [ https://issues.apache.org/jira/browse/HADOOP-12271?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Josh Elser updated HADOOP-12271:
--------------------------------
    Attachment: HADOOP-12271.001.patch

Here's a trivial patch against trunk.

> Hadoop Jar Error Should Be More Explanatory
> -------------------------------------------
>
>                 Key: HADOOP-12271
>                 URL: https://issues.apache.org/jira/browse/HADOOP-12271
>             Project: Hadoop Common
>          Issue Type: Improvement
>            Reporter: Jesse Anderson
>            Priority: Minor
>         Attachments: HADOOP-12271.001.patch
>
>
> 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



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)