hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dennis Kubes <nutch-...@dragonflymc.com>
Subject Re: Map output value different from Reduce Output value
Date Tue, 30 May 2006 18:26:30 GMT
Let me rephrase my question.  Is there a way to have a different final 
output value when using MapOutputFormat?

Dennis Kubes wrote:
> How would I set the map output value class to be different from the 
> reduce output value class.  I am trying the code below but it doesn't 
> seem to work.  It throws an error saying WordWeights is not 
> ObjectWritable where word weights is my final output value class.
> ...
>    rovejob.setMapOutputValueClass(ObjectWritable.class);
>    rovejob.setOutputFormat(MapFileOutputFormat.class);
>    rovejob.setOutputKeyClass(UTF8.class);      
> rovejob.setOutputValueClass(WordWeights.class);
> Dennis

View raw message