mrunit-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dipesh Khakhkhar <>
Subject How to set number of reduce tasks in MRUnit's mocked context object
Date Wed, 28 Nov 2012 22:59:13 GMT
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?


View raw message