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 "Harsh J (JIRA)" <ji...@apache.org> on 2015/07/27 09:25:05 UTC

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

    [ https://issues.apache.org/jira/browse/HADOOP-12271?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14642390#comment-14642390 ] 

Harsh J commented on HADOOP-12271:
----------------------------------

Makes sense; Mind submitting a patch with the better message (such as could not open, etc.)?

> 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
>
> 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)