mr.setOrderBy(new OrderBy().add("intField", Order.ASC).add("strField", Order.ASC).add("longField", Order.ASC));
mr.setTupleReducer(new Handler());
mr.addInput(new Path(input), new HadoopInputFormat(TextInputFormat.class), new IProcessor());
mr.setOutput(new Path(output), new HadoopOutputFormat(TextOutputFormat.class), Text.class,
DoubleWritable.class);
mr.createJob().waitForCompletion(true);
return 1;
}
public static void main(String[] args) throws Exception {
ToolRunner.run(new SecondarySort(), args);