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?
Grokbase › Groups › Hadoop › mapreduce-user › March 2010