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 "Sanjeev T (JIRA)" <ji...@apache.org> on 2015/03/24 12:19:54 UTC

[jira] [Updated] (HADOOP-11591) hadoop message for help and version with hyphens confusing

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

Sanjeev T updated HADOOP-11591:
-------------------------------
      Resolution: Fixed
        Assignee: Sanjeev T
    Hadoop Flags: Incompatible change
          Status: Resolved  (was: Patch Available)

The hadoop shell script is been changed, we don't need this patch.

> hadoop message for help and version with hyphens confusing
> ----------------------------------------------------------
>
>                 Key: HADOOP-11591
>                 URL: https://issues.apache.org/jira/browse/HADOOP-11591
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: scripts
>    Affects Versions: 2.6.0
>            Reporter: Sanjeev T
>            Assignee: Sanjeev T
>            Priority: Trivial
>         Attachments: HADOOP-11591.patch
>
>
> hadoop message, for help and version confuse the user
> * for hadoop help
> {noformat}
> hadoop --help
> Usage: hadoop [--config confdir] COMMAND
>        where COMMAND is one of:
>   fs                   run a generic filesystem user client
>   version              print the version
>   jar <jar>            run a jar file
>   checknative [-a|-h]  check native hadoop and compression libraries availability
>   distcp <srcurl> <desturl> copy file or directories recursively
>   archive -archiveName NAME -p <parent path> <src>* <dest> create a hadoop archive
>   classpath            prints the class path needed to get the
>                        Hadoop jar and the required libraries
>   daemonlog            get/set the log level for each daemon
>  or
>   CLASSNAME            run the class named CLASSNAME
> Most commands print help when invoked w/o parameters.
> {noformat}
> * for checking the hadoop version
> {noformat}
> $ hadoop --version
> Error: No command named `--version' was found. Perhaps you meant `hadoop -version'
> $ hadoop -version
> Error: No command named `-version' was found. Perhaps you meant `hadoop version'
> $ hadoop version
> Hadoop 2.0.0-cdh4.3.0
> {noformat}



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