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 "Wei-Chiu Chuang (JIRA)" <ji...@apache.org> on 2019/06/18 05:58:00 UTC

[jira] [Updated] (HADOOP-15914) hadoop jar command has no help argument

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

Wei-Chiu Chuang updated HADOOP-15914:
-------------------------------------
       Resolution: Fixed
    Fix Version/s: 3.1.3
                   3.2.1
                   3.3.0
           Status: Resolved  (was: Patch Available)

Pushed to trunk, branch-3.2 branch-3.1

Thanks [~adam.antal] for the patch and [~templedf] for the review.

> hadoop jar command has no help argument
> ---------------------------------------
>
>                 Key: HADOOP-15914
>                 URL: https://issues.apache.org/jira/browse/HADOOP-15914
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: common
>            Reporter: Adam Antal
>            Assignee: Adam Antal
>            Priority: Major
>             Fix For: 3.3.0, 3.2.1, 3.1.3
>
>         Attachments: HADOOP-15914.000.patch
>
>
> {{hadoop jar --help}} and {{hadoop jar help}} commands show outputs like this:
> {noformat}
> WARNING: Use "yarn jar" to launch YARN applications.
> JAR does not exist or is not a normal file: /root/--help
> {noformat}
> Only if called with no arguments: {{hadoop jar}} we get the usage text, but even in that case we get:
> {noformat}
> WARNING: Use "yarn jar" to launch YARN applications.
> RunJar jarFile [mainClass] args...
> {noformat}
> Where RunJar is wrapped by the hadoop script (so it should not be displayed).
> {{hadoop --help}} displays the following:
> {noformat}
> jar <jar>     run a jar file. NOTE: please use "yarn jar" to launch YARN applications, not this command.
> {noformat}
> which is fine, but {{CommandsManual.md}} tells a bit more information about the usage of this command:
> {noformat}
> Usage: hadoop jar <jar> [mainClass] args...
> {noformat}
> My suggestion is to add a {{--help}} option to the {{hadoop jar}} command that would display this message.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org