hadoop-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hemanth Yamijala <yhema...@thoughtworks.com>
Subject Re: How to unit test mappers reading data from DistributedCache?
Date Fri, 18 Jan 2013 04:59:11 GMT

Not sure how to do it using MRUnit, but should be possible to do this using
a mocking framework like Mockito or EasyMock. In a mapper (or reducer),
you'd use the Context classes to get the DistributedCache files. By mocking
these to return what you want, you could potentially run a true unit test.


On Fri, Jan 18, 2013 at 1:37 AM, Barak Yaish <barak.yaish@gmail.com> wrote:

> Hi,
> I've found MRUnit a very easy to unit test jobs, is it possible as well to
> test mappers reading data from DisributedCache? If yes, can you share an
> example how the test' setup() should look like?
> Thanks.

View raw message