hadoop-mapreduce-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Saliya Ekanayake <esal...@gmail.com>
Subject Writing Bytes from Map and Reduce functions
Date Wed, 31 Mar 2010 04:23:43 GMT

I am new to Hadoop and need some help on writing bytes from map and reduce
functions. I take K1, V1 as Text, Text for Map as input. I want to output
K2, V2 from Map where K2 is Text and V2 is some format which represents
bytes. At the moment I used BytesWritable for V2.Then for the Reduce
function I take K1, V1 as Text, BytesWritable. I want to output again K2, V2
as Text and some format representing bytes similar to the Map case.

Is BytesWritable the correct format for this requirement? Also what should
be the output format that I should provide in Job Configuration?

Thank you,

View raw message