From mrunit-dev-return-398-apmail-incubator-mrunit-dev-archive=incubator.apache.org@incubator.apache.org Tue Feb 7 04:45:52 2012 Return-Path: X-Original-To: apmail-incubator-mrunit-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-mrunit-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5ED0F9AAA for ; Tue, 7 Feb 2012 04:45:52 +0000 (UTC) Received: (qmail 85379 invoked by uid 500); 7 Feb 2012 04:45:49 -0000 Delivered-To: apmail-incubator-mrunit-dev-archive@incubator.apache.org Received: (qmail 85309 invoked by uid 500); 7 Feb 2012 04:45:37 -0000 Mailing-List: contact mrunit-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: mrunit-dev@incubator.apache.org Delivered-To: mailing list mrunit-dev@incubator.apache.org Received: (qmail 85281 invoked by uid 99); 7 Feb 2012 04:45:28 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Feb 2012 04:45:28 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Feb 2012 04:45:20 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 513B7CDFD9 for ; Tue, 7 Feb 2012 04:44:59 +0000 (UTC) Date: Tue, 7 Feb 2012 04:44:59 +0000 (UTC) From: "Brock Noland (Commented) (JIRA)" To: mrunit-dev@incubator.apache.org Message-ID: <1868870221.6726.1328589899334.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1326291934.4027.1328208303107.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (MRUNIT-56) 0.8.0 release does not work with Hadoop 0.23 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/MRUNIT-56?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13202072#comment-13202072 ] Brock Noland commented on MRUNIT-56: ------------------------------------ Using profiles (attached patch) it looks like it's possible to build the two jars needed with two separate invocations of the mvn package. The steps are as follows: $ mvn clean package -Phadoop-1.0 -Dhadoop.version=1.0.0 $ mv target/mrunit-0.8.0-incubating-hadoop-1.0.jar /tmp/ $ mvn clean assembly:assembly verify -Phadoop-0.23 -Dhadoop.version=0.23.1-SNAPSHOT $ mv /tmp/mrunit-0.8.0-incubating-hadoop-1.0.jar target/ $ mvn assembly:assembly verify -Phadoop-0.23 -Dhadoop.version=0.23.1-SNAPSHOT $ mvn deploy -Pdeploy -Pjavadoc -Dhadoop.version=0.23.1-SNAPSHOT This gives you a tar which contain two builds of mrunit: mrunit-0.8.0-incubating-hadoop-1.0.jar (for 1.0) mrunit-0.8.0-incubating.jar (for 0.23.1) The maven repo contains the archive but not the two jar files directly. It only contains mrunit-0.8.0-incubating.jar https://repository.apache.org/content/repositories/orgapachemrunit-205/ I think this gives us what we want but I am guessing there is a much better way of doing this. > 0.8.0 release does not work with Hadoop 0.23 > -------------------------------------------- > > Key: MRUNIT-56 > URL: https://issues.apache.org/jira/browse/MRUNIT-56 > Project: MRUnit > Issue Type: Bug > Affects Versions: 0.8.0 > Reporter: Tom White > Priority: Blocker > Attachments: mrunit-pom-test.diff > > > Unfortunately MRUNIT-31doesn't fix this. I get this failure: > {noformat} > java.lang.IncompatibleClassChangeError: Found interface org.apache.hadoop.mapreduce.TaskInputOutputContext, but class was expected > at org.apache.hadoop.mrunit.mapreduce.mock.MockContextWrapper.createCommon(MockContextWrapper.java:51) > at org.apache.hadoop.mrunit.mapreduce.mock.MockMapContextWrapper.create(MockMapContextWrapper.java:65) > at org.apache.hadoop.mrunit.mapreduce.mock.MockMapContextWrapper.(MockMapContextWrapper.java:57) > at org.apache.hadoop.mrunit.mapreduce.MapDriver.run(MapDriver.java:195) > at org.apache.hadoop.mrunit.MapDriverBase.runTest(MapDriverBase.java:185) > at v5.MaxTemperatureMapperTest.parsesMissingTemperature(MaxTemperatureMapperTest.java:34) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > {noformat} -- 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