I uploaded a patch that does a secondary sort. Take a look at:

https://issues.apache.org/jira/browse/HADOOP-4545

It reads input with two numbers per a line. Such as:

-1 -4
-3 23
5 10
-1 -2
-1 300
-1 10
4 1
4 2
4 10
4 -1
4 -10
10 20
10 30
10 25

And produces output like (with 2 reduces):

part-00000:
------------------------------------------------
4       -10
4       -1
4       1
4       2
4       10
------------------------------------------------
10      20
10      25
10      30

part-00001:
------------------------------------------------
-3      23
------------------------------------------------
-1      -4
-1      -2
-1      10
-1      300
------------------------------------------------
5       10

-- Owen

Reply via email to