mrunit-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dipesh Khakhkhar <dipeshsoftw...@gmail.com>
Subject Re: How to set number of reduce tasks in MRUnit's mocked context object
Date Wed, 28 Nov 2012 23:11:32 GMT
When I am running a reducer test - then this method should return 1 without
requiring any further mocking. Correct? Same is true for Mapper (I have not
tried it though).

Will it require an enhancement in the framework or it can be done
externally.

Thanks.

On Wed, Nov 28, 2012 at 2:59 PM, Dipesh Khakhkhar
<dipeshsoftware@gmail.com>wrote:

> I'm calling getNumReduceTasks() method in my reducer and in my MRUnit
> test, framework has created a mock context object but when I call
> getNumReduceTasks it is returning 0.
>
> I have tried setting it to Configuration object too but it didn't help.
>
> How can i set getNumReduceTasks() to return a desired number here?
>
> Thanks.
>

Mime
View raw message