hadoop-mapreduce-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michel Segel <michael_se...@hotmail.com>
Subject Re: Transpose
Date Tue, 05 Mar 2013 15:18:41 GMT
Yes you can.
You read in the row in each iteration of Mapper.map()
Text input.
You then output 3 times to the collector one for each row of the matrix.

Spin,sort, and reduce as needed.

Sent from a remote device. Please excuse any typos...

Mike Segel

On Mar 5, 2013, at 9:11 AM, Mix Nin <pig.mixed@gmail.com> wrote:

> Hi
> 
> I have data in a file as follows . There are 3 columns separated by semicolon(;). Each
column would have multiple values separated by comma (,). 
> 
> 11,22,33;144,244,344;yny;
> 
> I need output data in below format. It is like transposing  values of each column.
> 
> 11 144 y	
> 22 244 n
> 33 344 y
> 
> Can we write map reduce program to achieve this. Could you help on the code on how to
write.
> 
> 
> Thanks

Mime
View raw message