Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Lucene-hadoop Wiki" for 
change notification.

The following page has been changed by OwenOMalley:
http://wiki.apache.org/lucene-hadoop/Sort

------------------------------------------------------------------------------
  = Sort Example =
  
- '''Sort''' example is a trivial map/reduce program that does nothing other 
than use the framework to fragment and sort the input data. The mapper is an 
Identity map, while the ruducer is an Identity reducer. The input and output 
are Sequence files, of which both key and value have a type of 
''!BytesWritable''. 
+ The '''Sort''' example simply uses the map/reduce framework to sort the input 
directory into the output directory. The inputs and outputs must be Sequence 
files where the keys and values are !BytesWritable.
  
+ The mapper is the predefined !IdentityMapper and the ruducer is the 
predefined !IdentityReducer, both of which just pass their inputs directly to 
the output. 
- To run the example, the command syntax is[[BR]]
- bin/hadoop org.apache.hadoop.examples.Sort [-m <#maps>] [-r <#reduces>] 
<in-dir> <out-dir>
  
+ To run the program:
+ bin/hadoop jar hadoop-*-examples.jar sort [-m <#maps>] [-r <#reduces>] 
<in-dir> <out-dir>
+ 

Reply via email to