hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lohit <lohit...@yahoo.com>
Subject Re: Problem of Hadoop's Partitioner
Date Tue, 22 Jul 2008 03:45:24 GMT
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 <gopal.gandhi2008@yahoo.com>
To: core-dev@hadoop.apache.org
Cc: core-user@hadoop.apache.org
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?

Mime
View raw message