mrunit-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bertrand Dechoux <decho...@gmail.com>
Subject Re: MRUnit 1.0.0 not working with Hadoop 0.20.203.2
Date Tue, 26 Nov 2013 22:11:34 GMT
I am assuming that for private reasons you can't upgrade to a version 1 of
Hadoop even though now the version 2 is stable?

It might be a change within the API. Are you using maven? What is the
behavior of mrunit 1.0.0 when you select a real hadoop 1?

Would you be able to provide a snippet?

Regard

Bertrand


On Tue, Nov 26, 2013 at 10:24 PM, Sirish Chandraa Dhananjaya <
sirsa.chandraa@gmail.com> wrote:

> I was originally using mrunit 0.20.1+152 which did not have the ability to
> specify custom configuration parameters. So I jumped to the latest mrunit
> 1.0.0 for hadoop_1. I noticed that even a test case that succeeds with
> mrunit 0.20.1+152 throws an internal exception on mrunit 1.0.0 for hadoop1.
>
> Test case is as simple as setting an input, an output and calling
> runTest() on the reduce driver object.
>
> I get the following error :
>
> java.lang.ClassCastException:
> org.apache.hadoop.mrunit.internal.mapreduce.MockReduceContextWrapper$5$1
> cannot be cast to org.apache.hadoop.mapreduce.ReduceContext$ValueIterator
>
>                 at
> org.apache.hadoop.mapreduce.Reducer.run(Reducer.java:179)
>
>                 at
> org.apache.hadoop.mrunit.mapreduce.ReduceDriver.run(ReduceDriver.java:143)
>
>                 at
> org.apache.hadoop.mrunit.TestDriver.runTest(TestDriver.java:574)
>
>                 at
> org.apache.hadoop.mrunit.TestDriver.runTest(TestDriver.java:561)
>
>
> Any help would be appreciated.
>
>
> Thanks,
>
> Sirish
>
>
>
>


-- 
Bertrand Dechoux

Mime
View raw message