|
|
-
Re: Sorting Numbers using mapreduceHemanth Yamijala 2010-09-06, 05:42
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 > |