Yes, this is know issue and a bug has been opened to fix/improve upon this 
https://issues.apache.org/jira/browse/HADOOP-2302
For now, you could emit your keys as 01, 02 instead of 1, 2 which will sort the 
keys in numerical order.
Thanks,
Lohit



----- Original Message ----
From: Gopal Gandhi <[EMAIL PROTECTED]>
To: [email protected]
Cc: [EMAIL PROTECTED]
Sent: Monday, July 21, 2008 5:52:00 PM
Subject: Problem of Hadoop's Partitioner

I am following the example in 
http://hadoop.apache.org/core/docs/current/streaming.html about Hadoop's 
partitioner: org.apache.hadoop.mapred.lib.KeyFieldBasedPartitioner . It seems 
that the sorted values are based on dictionary, for eg:
1
12
15
2
28

What if I want to get numerical sorted list:
1
2
12
15
28
What partitioner shall I use?

Reply via email to