You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mrunit.apache.org by "Tom White (Updated) (JIRA)" <ji...@apache.org> on 2011/10/17 19:52:11 UTC

[jira] [Updated] (MRUNIT-31) Support Hadoop 0.22 and 0.23

     [ https://issues.apache.org/jira/browse/MRUNIT-31?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tom White updated MRUNIT-31:
----------------------------

    Attachment: MRUNIT-31.patch

This patch illustrates the problem by updating the Hadoop version to 0.23. (Try "mvn clean install -DskipTests".)

The problem is that org.apache.hadoop.mrunit.mapreduce.mock.MockMapContextWrapper and org.apache.hadoop.mrunit.mapreduce.mock.MockReduceContextWrapper no longer compile since the context objects were changed to interfaces.

The doesn't affect the public MRUnit API (MapDriver etc), so it should be possible to support both APIs and switch at runtime using Java reflection. Another approach would be to publish two artifacts and have the user pick the one they want to use.

Thoughts?


                
> Support Hadoop 0.22 and 0.23
> ----------------------------
>
>                 Key: MRUNIT-31
>                 URL: https://issues.apache.org/jira/browse/MRUNIT-31
>             Project: MRUnit
>          Issue Type: Improvement
>            Reporter: Tom White
>         Attachments: MRUNIT-31.patch
>
>
> The new MapReduce API changed in 0.21 (MAPREDUCE-954) in such a way as to break MRUnit.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira