[ https://issues.apache.org/jira/browse/HADOOP-8834?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13582368#comment-13582368 ]
Abhishek Kapoor commented on HADOOP-8834: ----------------------------------------- I will be removing ERROR from "ERROR: Wrong number of parameters" and will update sysout with "Wrong number of parameters" Findings: So far only two classes(Join.java and Sort.java in package org.apache.hadoop.examples in hadoop-mapreduce-exmaples project) will be affected for all the examples Please suggest if we need any other amendments for it. > Hadoop examples when run without an argument, gives ERROR instead of just > usage info > ------------------------------------------------------------------------------------ > > Key: HADOOP-8834 > URL: https://issues.apache.org/jira/browse/HADOOP-8834 > Project: Hadoop Common > Issue Type: Bug > Affects Versions: 0.23.0 > Reporter: Robert Justice > Priority: Minor > > 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 is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira