hadoop-mapreduce-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jason Venner <jason.had...@gmail.com>
Subject Re: WordCount sort by frequency?
Date Sat, 19 Dec 2009 20:43:27 GMT
The simple way is to run another M/R pass over the resulting word count
dataset.
The map can swap the word and the count so that count is the key and word is
the value.
The reduce may be the identity reducer.


On Mon, Dec 14, 2009 at 11:53 AM, Mark Vigeant <mark.vigeant@riskmetrics.com
> wrote:

> Hello!
>
> I was wondering if there was any convenient way to sort the Reducer output?
>
> Specifically, in WordCount is there a way to sort the results by frequency?
>
> Thank you very much, I'm sorry if this is seen as a dumb question.
>
> Mark Vigeant
> RiskMetrics Group, Inc.
>
>
> This email message and any attachments are for the sole use of the intended
> recipients and may contain proprietary and/or confidential information which
> may be privileged or otherwise protected from disclosure. Any unauthorized
> review, use, disclosure or distribution is prohibited. If you are not an
> intended recipient, please contact the sender by reply email and destroy the
> original message and any copies of the message as well as any attachments to
> the original message.
>



-- 
Pro Hadoop, a book to guide you from beginner to hadoop mastery,
http://www.amazon.com/dp/1430219424?tag=jewlerymall
www.prohadoopbook.com a community for Hadoop Professionals

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message