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 "Adam Antal (JIRA)" <ji...@apache.org> on 2018/11/15 16:34:00 UTC

[jira] [Work started] (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 ]

Work on HADOOP-15914 started by Adam Antal.
-------------------------------------------
> 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
>
> {{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