Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Hadoop >> mail # user >> Sorting Numbers using mapreduce

Copy link to this message
Re: Sorting Numbers using mapreduce

On Mon, Sep 6, 2010 at 1:47 AM, Neil Ghosh <[EMAIL PROTECTED]> wrote:
> Hi,
> I am trying to sort a list of numbers (one per line) using  hadoop
> mapreduce.
> Kindly suggest any reference and code.
> How do I implement custom input format and recordreader so that both key and
> value are the number?
> I am using Hadoop 0.20.2

In the examples that come with Hadoop, you can find a 'sort' example.
The source is at o.a.h.examples.Sort.java. This should give you a good
starting point, IMO.


> Thanks
> Neil
> --
> Thanks and Regards
> Neil
> http://neilghosh.com