hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Raja Nagendra Kumar <Nagendra.R...@tejasoft.com>
Subject Need for output key and value explicit api level setting
Date Mon, 04 Jul 2011 01:33:46 GMT

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-explicit-api-level-setting-tp31977853p31977853.html
Sent from the Hadoop core-dev mailing list archive at Nabble.com.


Mime
View raw message