hadoop-mapreduce-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aaron Kimball <aa...@cloudera.com>
Subject Re: Unit Testing Mapper with new MR API
Date Tue, 01 Dec 2009 18:59:23 GMT
MRUnit has had new API support for a while now (see MAPREDUCE-800). The new
Driver classes are in org.apache.hadoop.mrunit.mapreduce.

- Aaron

On Tue, Dec 1, 2009 at 12:44 AM, Bernd Fondermann <bf_jak@brainlounge.de>wrote:

> Hi,
>
> Unit testing a mapper with the old mapred API is easy.
>
> However, for the new mapreduce API, I struggle creating the Context
> object in an easy and elegant way.
>
> How do I best mock the Context for the mapper, as MRUnit does not seem
> to be ready to be used with the new API yet?
>
> Is there example code somewhere?
>
> Thanks,
>
>  Bernd
>

Mime
View raw message