You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mapreduce-issues@hadoop.apache.org by "Akira AJISAKA (JIRA)" <ji...@apache.org> on 2015/02/05 01:42:35 UTC

[jira] [Commented] (MAPREDUCE-6244) Hadoop examples when run without an argument, gives ERROR instead of just usage info

    [ https://issues.apache.org/jira/browse/MAPREDUCE-6244?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14306328#comment-14306328 ] 

Akira AJISAKA commented on MAPREDUCE-6244:
------------------------------------------

Moved to MapReduce project.

> Hadoop examples when run without an argument, gives ERROR instead of just usage info
> ------------------------------------------------------------------------------------
>
>                 Key: MAPREDUCE-6244
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-6244
>             Project: Hadoop Map/Reduce
>          Issue Type: Improvement
>    Affects Versions: 0.23.0, trunk-win, 2.6.0
>            Reporter: Robert Justice
>            Assignee: Abhishek Kapoor
>            Priority: Minor
>         Attachments: HADOOP-8834.patch, HADOOP-8834.patch
>
>
> Hadoop sort example should not give an ERROR and only should display usage when run with no parameters. 
> {code}
> $ hadoop jar /usr/lib/hadoop-mapreduce/hadoop-mapreduce-examples.jar sort
> ERROR: Wrong number of parameters: 0 instead of 2.
> sort [-m <maps>] [-r <reduces>] [-inFormat <input format class>] [-outFormat <output format class>] [-outKey <output key class>] [-outValue <output value class>] [-totalOrder <pcnt> <num samples> <max splits>] <input> <output>
> Generic options supported are
> -conf <configuration file>     specify an application configuration file
> -D <property=value>            use value for given property
> -fs <local|namenode:port>      specify a namenode
> -jt <local|jobtracker:port>    specify a job tracker
> -files <comma separated list of files>    specify comma separated files to be copied to the map reduce cluster
> -libjars <comma separated list of jars>    specify comma separated jar files to include in the classpath.
> -archives <comma separated list of archives>    specify comma separated archives to be unarchived on the compute machines.
> The general command line syntax is
> bin/hadoop command [genericOptions] [commandOptions]
> {code}



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