My Oracle Support Banner

Running the sort Example in $HADOOP_HOME/hadoop-examples.jar Errors Out When Running to Find Usage Information (Doc ID 1498298.1)

Last updated on MARCH 12, 2013

Applies to:

Big Data Appliance Integrated Software - Version 1.0.3 and later
Linux x86-64


Running the sample program sort from $HADOOP_HOME/hadoop-examples.jar as follows to get usage details:

$ hadoop jar $HADOOP_HOME/hadoop-examples.jar sort

raises a "Wrong number of parameters" error:

$ hadoop jar $HADOOP_HOME/hadoop-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]



To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.