The simplest way is to swap the key and value in your mapper's output, then
swap them back afterward.

On Thu, Jul 9, 2009 at 7:52 AM, Marcus Herou <[email protected]>wrote:

> Hi many times I want to sort by value instead of key.
>
> For instance when counting the top used tags in blog posts or the ten most
> visited pages on a certain site and so on.
>
> Wondering if that is even possible with hadopp or if I need to process the
> file outside of hadoop.
>
> Cheers
>
> /Marcus
>
> --
> Marcus Herou CTO and co-founder Tailsweep AB
> +46702561312
> [email protected]
> http://www.tailsweep.com/
>



-- 
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

Reply via email to