[
https://issues.apache.org/jira/browse/HADOOP-15914?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Adam Antal reassigned HADOOP-15914:
-----------------------------------
Assignee: 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: [email protected]
For additional commands, e-mail: [email protected]