回复: Re:How to sort in a WordCount

2014-08-16 Thread laozh...@sina.cn
Hi,?周杰Thank you for your reply.partition can get the top-k of the wordcount result ?In this problem,I have a lot of search keywords , and i want to know the top-k words .So for those words which only occures one or two times, i can ignore them. laozh...@sina.cn ?发件人:?周杰发送时间:?2014-08-17

How to sort in a WordCount

2014-08-16 Thread laozh...@sina.cn
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. laozh...@sina.cn

Re: Re: Hadoop NoClassDefFoundError

2014-04-16 Thread laozh...@sina.cn
$Reduce.class 2160 04-15-2014 14:54 MyJob.class - --- 5159 5 files laozh...@sina.cn  From: Stanley ShiDate: 2014-04-16 10:25To: user@hadoop.apache.orgSubject: Re: Re: Hadoop NoClassDefFoundErrorcan do you an "unzip -l myjob.jar" to see if your jar file has the correct hierarch

Re: Re: Hadoop NoClassDefFoundError

2014-04-15 Thread laozh...@sina.cn
r 15, 2014 at 3:06 PM, laozh...@sina.cn wrote: Hello EveryOne:    I am new to hadoop,and i am reading Hadoop in action.When i tried to run a demo from this book,I got a problem and could not find answer from the net. Can you help me on this ? below is the error info :  $ hadoop jar myjob.jar M

Hadoop NoClassDefFoundError

2014-04-15 Thread laozh...@sina.cn
Hello EveryOne:    I am new to hadoop,and i am reading Hadoop in action.When i tried to run a demo from this book,I got a problem and could not find answer from the net. Can you help me on this ? below is the error info :  $ hadoop jar myjob.jar MyJob input outputException in thread "main"