hadoop-mapreduce-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From 周杰 <zhoujie...@126.com>
Subject Re:How to sort in a WordCount
Date Sun, 17 Aug 2014 02:54:31 GMT
Hi,laozhao
     are you gonna sort all the keys?Maybe you can sort all the keys by implentmenting partition
function, something like range-partition.for example, there are 100 digits. you can design
5 partitions [1-20],[20,40],[40,60],[60,80],[80,100], deviding the different digits into different
partitions. 


At 2014-08-17 10:35:34, "laozhao0@sina.cn" <laozhao0@sina.cn> wrote:

Hello,
I am using mapreduce to get the frequency of words in a corpus . 
And I want to get a descnding sorted result.
Now  I can use Hive to sort them ,but If i use mapreduce,how can i do this ?


Thakns.


laozhao0@sina.cn
Mime
View raw message