From dev-return-1666-apmail-mrunit-dev-archive=mrunit.apache.org@mrunit.apache.org Sun Nov 11 12:01:17 2012 Return-Path: X-Original-To: apmail-mrunit-dev-archive@www.apache.org Delivered-To: apmail-mrunit-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DA078D02B for ; Sun, 11 Nov 2012 12:01:17 +0000 (UTC) Received: (qmail 28507 invoked by uid 500); 11 Nov 2012 12:01:17 -0000 Delivered-To: apmail-mrunit-dev-archive@mrunit.apache.org Received: (qmail 28341 invoked by uid 500); 11 Nov 2012 12:01:14 -0000 Mailing-List: contact dev-help@mrunit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@mrunit.apache.org Delivered-To: mailing list dev@mrunit.apache.org Received: (qmail 28282 invoked by uid 99); 11 Nov 2012 12:01:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 11 Nov 2012 12:01:13 +0000 Date: Sun, 11 Nov 2012 12:01:13 +0000 (UTC) From: "Dave Beech (JIRA)" To: dev@mrunit.apache.org Message-ID: <1819468814.97622.1352635273402.JavaMail.jiratomcat@arcas> In-Reply-To: <186489787.96099.1352549231985.JavaMail.jiratomcat@arcas> Subject: [jira] [Assigned] (MRUNIT-159) MRUnit not compiling with hadoop 0.23.3 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/MRUNIT-159?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dave Beech reassigned MRUNIT-159: --------------------------------- Assignee: Dave Beech > MRUnit not compiling with hadoop 0.23.3 > --------------------------------------- > > Key: MRUNIT-159 > URL: https://issues.apache.org/jira/browse/MRUNIT-159 > Project: MRUnit > Issue Type: Bug > Affects Versions: 1.0.0 > Reporter: Jakub > Assignee: Dave Beech > 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(AbstractMockContextWrapper.java:53) > I read other issues like https://issues.apache.org/jira/browse/MRUNIT-56 and decided to recompile mrunit. > 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: > mrunit-1.0.0-SNAPSHOT-hadoop1.jar > mrunit-1.0.0-SNAPSHOT-hadoop2.jar > but was still getting exception > I've changed pom.xml specificHadoopVersion to: > 0.23.3 > and then: > mvn clean > mvn install -DskipTests -Dhadoop.version=2 > and there are compilation errors: > [ERROR] COMPILATION ERROR : > [INFO] ------------------------------------------------------------- > [ERROR] /home/kuba/studia/magisterka/mrunit/src/main/java/org/apache/hadoop/mrunit/TestDriver.java:[464,24] error: cannot find symbol > [ERROR] class DistributedCache > /home/kuba/studia/magisterka/mrunit/src/main/java/org/apache/hadoop/mrunit/TestDriver.java:[478,24] 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: http://www.atlassian.com/software/jira