hadoop-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alessandro Binhara <binh...@gmail.com>
Subject Re: simple map reduce
Date Fri, 18 Feb 2011 10:42:49 GMT
I need extend ArrayWritable ??? like this :

public class IntArrayWritable extends ArrayWritable { public
IntArrayWritable() { super(IntWritable.class); } }

On Fri, Feb 18, 2011 at 1:15 AM, Harsh J <qwertymaniac@gmail.com> wrote:

> Hello,
>
> On Fri, Feb 18, 2011 at 12:17 AM, Alessandro Binhara <binhara@gmail.com>
> wrote:
> > I had a another structure .. of input file
> > key, value1, value2, value3
> > 993, 3,2,3
> > 993, 2,1,1
> > 333, 2,2,1
> >
> > How i can sendo to reduce a list of values, ? To process a list numers
> and
> > not only one number?
> > values must be added separately..
>
> An IntWritable can't obviously hold a sequence of integers. So you
> need a different data structure to hold a sequence of integers. From
> the available bank of Writables in Hadoop, you can perhaps use an
> ArrayWritable initialized for IntWritable members.
>
> --
> Harsh J
> www.harshj.com
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message