Sanjeev T created HADOOP-11591:
----------------------------------
Summary: 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
Priority: Trivial
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)