Re: TOP N items

2010-09-10 Thread Runping Qi
contained in this email is confidential and may be > >> legally > >> > privileged. It is intended solely for the addressee. Access to this > >> email by > >> > anyone else is unauthorized. If you are not the intended recipient, > any > >>

Re: TOP N items

2010-09-10 Thread Neil Ghosh
>> > in reliance on it, is prohibited and may be unlawful. Any views >> expressed in >> > this message are those of the individual and may not necessarily reflect >> the >> > views of Telescope Inc. or its associated companies. >> > >> > >> &

Re: TOP N items

2010-09-10 Thread Alex Kozlov
expressed > in > > this message are those of the individual and may not necessarily reflect > the > > views of Telescope Inc. or its associated companies. > > > > > > -Original Message- > > From: Neil Ghosh [mailto:neil.gh...@gmail.com] > > Sent

Re: TOP N items

2010-09-10 Thread Neil Ghosh
n > this message are those of the individual and may not necessarily reflect the > views of Telescope Inc. or its associated companies. > > > -Original Message- > From: Neil Ghosh [mailto:neil.gh...@gmail.com] > Sent: Friday, September 10, 2010 3:51 PM > To: Jam

RE: TOP N items

2010-09-10 Thread Aaron Baff
e views of Telescope Inc. or its associated companies. -Original Message- From: Neil Ghosh [mailto:neil.gh...@gmail.com] Sent: Friday, September 10, 2010 3:51 PM To: James Seigel Cc: common-user@hadoop.apache.org Subject: Re: TOP N items Thanks James, This gives me only N results for sur

Re: TOP N items

2010-09-10 Thread Neil Ghosh
nter(“ME", "total output records" > ); > if (counter.getValue() < LIMIT) { > > > > context.write(key, value); > counter.increment(1); > } > > > Cheers > James. > > > > On 2010-09-10, at 3:04 PM, Ne

Re: TOP N items

2010-09-10 Thread James Seigel
ounter.increment(1); } Cheers James. On 2010-09-10, at 3:04 PM, Neil Ghosh wrote: Hello , I am new to Hadoop.Can anybody suggest any example or procedure of outputting TOP N items having maximum total count, where the input file has have (Item, count ) pair in each line . Items can repeat.

TOP N items

2010-09-10 Thread Neil Ghosh
Hello , I am new to Hadoop.Can anybody suggest any example or procedure of outputting TOP N items having maximum total count, where the input file has have (Item, count ) pair in each line . Items can repeat. Thanks Neil http://neilghosh.com -- Thanks and Regards Neil http://neilghosh.com