Re: Can hadoop sort by values rather than keys?

2008-09-28 Thread Billy Pearson

Might be able to use InverseMapper.class

To help flip the key/value to value/key

Billy


"Jeremy Chow" <[EMAIL PROTECTED]> wrote in 
message news:[EMAIL PROTECTED]

Hi list,
 The default way hadoop doing its sorting is by keys , can it sort by
values rather than keys?

Regards,
Jeremy
--
My research interests are distributed systems, parallel computing and
bytecode based virtual machine.

http://coderplay.javaeye.com






Re: Can hadoop sort by values rather than keys?

2008-09-24 Thread Jim Twensky
Sorting according to keys is a requirement for the map/reduce algorithm. I'd
suggest running a second map/reduce phase on the output files of your
application and use the values as keys in that second phase. I know that
will increase the running time, but this is how I do it when I need to get
my output files sorted according to their values rather then keys.

Jim

On Wed, Sep 24, 2008 at 9:28 PM, Qin Gao <[EMAIL PROTECTED]> wrote:

> Why not use the value as keys.
>
> On Wed, Sep 24, 2008 at 10:22 PM, Jeremy Chow <[EMAIL PROTECTED]> wrote:
>
> > Hi list,
> >  The default way hadoop doing its sorting is by keys , can it sort by
> > values rather than keys?
> >
> > Regards,
> > Jeremy
> > --
> > My research interests are distributed systems, parallel computing and
> > bytecode based virtual machine.
> >
> > http://coderplay.javaeye.com
> >
>


Re: Can hadoop sort by values rather than keys?

2008-09-24 Thread Qin Gao
Why not use the value as keys.

On Wed, Sep 24, 2008 at 10:22 PM, Jeremy Chow <[EMAIL PROTECTED]> wrote:

> Hi list,
>  The default way hadoop doing its sorting is by keys , can it sort by
> values rather than keys?
>
> Regards,
> Jeremy
> --
> My research interests are distributed systems, parallel computing and
> bytecode based virtual machine.
>
> http://coderplay.javaeye.com
>


Can hadoop sort by values rather than keys?

2008-09-24 Thread Jeremy Chow
Hi list,
  The default way hadoop doing its sorting is by keys , can it sort by
values rather than keys?

Regards,
Jeremy
-- 
My research interests are distributed systems, parallel computing and
bytecode based virtual machine.

http://coderplay.javaeye.com