hadoop-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Harsh J <qwertyman...@gmail.com>
Subject Re: simple map reduce
Date Fri, 18 Feb 2011 03:15:25 GMT
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
View raw message