Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 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
Hi,

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
Hemanth

> Thanks
> Neil
>
> --
> Thanks and Regards
> Neil
> http://neilghosh.com
>
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB