mrunit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jakub (JIRA)" <>
Subject [jira] [Created] (MRUNIT-159) MRUnit not compiling with hadoop 0.23.3
Date Sat, 10 Nov 2012 12:07:11 GMT
Jakub created MRUNIT-159:

             Summary: MRUnit not compiling with hadoop 0.23.3
                 Key: MRUNIT-159
             Project: MRUnit
          Issue Type: Bug
    Affects Versions: 1.0.0
            Reporter: Jakub
            Priority: Critical

I tried to write test using mrunit 1.0.0 ( i need to init cache, which is unavaliable in already
relased versions)

when I run my code I get:
java.lang.IncompatibleClassChangeError: Found interface org.apache.hadoop.mapreduce.TaskInputOutputContext,
but class was expected
	at org.apache.hadoop.mrunit.internal.mapreduce.AbstractMockContextWrapper.createCommon(

I read other issues like and decided to recompile
I've downloaded source, and then:

mvn install -DskipTests
Build succes

mvn install -DskipTests -Dhadoop.version=2
Build success

tried both output version with my code:

but was still getting exception

I've changed pom.xml specificHadoopVersion to:

and then:

mvn clean
mvn install -DskipTests -Dhadoop.version=2

and there are compilation errors:

[INFO] -------------------------------------------------------------
[ERROR] /home/kuba/studia/magisterka/mrunit/src/main/java/org/apache/hadoop/mrunit/[464,24]
error: cannot find symbol
[ERROR]  class DistributedCache
error: cannot find symbol
[INFO] 2 errors 

that's because initDistributedCache method uses DistributedCache.addLocalFiles(), which is
unavaliable in Hadoop 0.23.3

I tried to fix it, but I'm new to hadoop ant havent succeed yet, any help, please?

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message