FAQ
Hi,


In the Definitive Guide in page 32, I see these lines

conf.setOutputKeyClass(Text.class);
conf.setOutputValueClass(IntWritable.class);

Is this good to such explicit setting of the output format in configuration
or with in reduce method it self.
Also, such explicit setting may not be needed at all as the context object
knows what is the kind of data it has i.e because in reducer we are already
saying

context.write(key, new IntWritable(maxValue));

Regards,
Raja Nagendra Kumar,
C.T.O
www.tejasoft.com
-Hadoop Adoption Consulting





--
View this message in context: http://old.nabble.com/Need-for-output-key-and-value-settings-tp31977853p31977853.html
Sent from the Hadoop core-dev mailing list archive at Nabble.com.

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupcommon-dev @
categorieshadoop
postedJul 2, '11 at 2:36a
activeJul 2, '11 at 2:36a
posts1
users1
websitehadoop.apache.org...
irc#hadoop

1 user in discussion

Raja Nagendra Kumar: 1 post

People

Translate

site design / logo © 2022 Grokbase