incubator-mrunit-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brock Noland <br...@cloudera.com>
Subject Re: Support for testing partitioners
Date Tue, 10 Apr 2012 12:44:58 GMT
Hi,

My guess that JIRA is going to take some time since we need upstream changes.

However, you can test your map/reduce code with MRUnit and test your
Partitioner with JUnit itself.

In pseudo code:

Partitioner part = new Partitioner();
int n = part.getPartition(key, value, numReducers);
assertEquals(5, 1);

Brock

On Tue, Apr 10, 2012 at 8:18 AM, Lakshminarayana, Bhuvan
<bhuvanl@amazon.com> wrote:
> Any update on below request :
>
> https://issues.apache.org/jira/browse/MRUNIT-88?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#issue-tabs
>
>
>
> I am also in need of feature of testing partitioners using MRUNit.
>
>
>
>
>
> Thanks
>
> Bhuvan



-- 
Apache MRUnit - Unit testing MapReduce - http://incubator.apache.org/mrunit/

Mime
View raw message