mrunit-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bertrand Dechoux <decho...@gmail.com>
Subject Re: Help testing a reducer with MRUnit 1.0.0 Hadoop2
Date Thu, 25 Jul 2013 07:41:57 GMT
And that's why @Override should always be used (especially with Hadoop).

http://docs.oracle.com/javase/7/docs/api/java/lang/Override.html

BTW you can also simplify your code :
* use ReduceDriver.newReduceDriver(new TestReducer())
* instead of ** *new*
 ReduceDriver<IntWritable,IntWritable,IntWritable,IntWritable>()
                        .withReducer(*new* TestReducer())

Bertrand


On Thu, Jul 25, 2013 at 1:43 AM, Mike Bernico <mike.bernico@gmail.com>wrote:

> Oops, yes that was it.   I must have stared at that for an hour too.
>
> Thanks!
>
>
>
>
> On Wed, Jul 24, 2013 at 5:30 PM, Sudhin Varghese <sudhin@gmail.com> wrote:
>
>> Since your reduce method is overridden incorrectly as Reduce, I assume
>> its calling the default identity function.
>>
>> Thanks,
>> _sudhin_
>> http://www.sudhcha.com
>>
>> On Jul 24, 2013, at 6:25 PM, Mike Bernico <mike.bernico@gmail.com> wrote:
>>
>> > Reduce
>>
>
>

Mime
View raw message