From mrunit-dev-return-418-apmail-incubator-mrunit-dev-archive=incubator.apache.org@incubator.apache.org Tue Feb 14 19:37:19 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 AA7B09C9D for ; Tue, 14 Feb 2012 19:37:19 +0000 (UTC) Received: (qmail 47092 invoked by uid 500); 14 Feb 2012 19:37:19 -0000 Delivered-To: apmail-incubator-mrunit-dev-archive@incubator.apache.org Received: (qmail 47067 invoked by uid 500); 14 Feb 2012 19:37:19 -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 47059 invoked by uid 99); 14 Feb 2012 19:37:19 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Feb 2012 19:37:19 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of oss.akk@gmail.com designates 209.85.214.175 as permitted sender) Received: from [209.85.214.175] (HELO mail-tul01m020-f175.google.com) (209.85.214.175) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Feb 2012 19:37:14 +0000 Received: by obhx4 with SMTP id x4so406285obh.6 for ; Tue, 14 Feb 2012 11:36:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=w6bol93kNMHWrpGsCXaN6J0sGo6vHu34nKMFxiq5zAU=; b=GmpymKfNpeEkXOqisq5Eb8ysgoo0Y7TOYbjjMRnTujvP0JHH8otWixXEq/oCKh4Gy1 d7NvhgAiKeLozg91FtApwtVA0nERIMorpTM4FBhvweECFCGgTtZPYgAetQGH41o1CMDh YlZZxNar4v8pOxabrOyEiBnt9+myxOcrfwjCk= MIME-Version: 1.0 Received: by 10.60.1.137 with SMTP id 9mr1165676oem.39.1329248214007; Tue, 14 Feb 2012 11:36:54 -0800 (PST) Received: by 10.182.187.73 with HTTP; Tue, 14 Feb 2012 11:36:53 -0800 (PST) In-Reply-To: References: Date: Tue, 14 Feb 2012 11:36:53 -0800 Message-ID: Subject: Re: MRUNIT-56 - 0.8.0 release does not work with Hadoop 0.23 From: Karthik K To: mrunit-dev@incubator.apache.org Content-Type: multipart/alternative; boundary=e89a8fb1f8029d3e4304b8f1b7ad --e89a8fb1f8029d3e4304b8f1b7ad Content-Type: text/plain; charset=ISO-8859-1 On Tue, Feb 14, 2012 at 11:07 AM, Brock Noland wrote: > Hi, > > Hmm, I added the -D options earlier but clearly screwed something up. > That works in the three jars get published: > > > https://repository.apache.org/content/repositories/orgapachemrunit-230/org/apache/mrunit/mrunit/0.8.0-incubating/ > > Given that we have three jars with the same groupId and artifactId is > there any risk of accidentally including more than one of the jars in > the classpath? > > There is also a classifier ( suffix name to the jar files ) to distinguish between the same. So - this must be ok, for maven and non-maven people to pick the right jar. Maven people would use the following to import, what they want: org.apache.mrunit mrunit 0.8.0-incubating * hadoop20* classifier: (other values: hadoop100 or hadoop23, as appropriate ). Non-maven people would just download the jar directly and incorporate in their platforms. So - I guess we are good here. > Again, showing my maven noob status. > > Cheers! > Brock > > On Tue, Feb 14, 2012 at 12:35 PM, Karthik K wrote: > > Thanks for sharing the command. > > > > That activates the default profile ( hadoop 0.20) and hence, deploys with > > the default classifier ( hadoop20) . > > > > # mvn clean assembly:assembly verify > > #mvn clean deploy -Pdeploy -Pjavadoc > > (deploys hadoop20 classifier artifacts, by default) > > > > To do for other hadoop platforms, though, we need to activate their > > respective profiles > > > > # mvn *-Dhadoopversion=100 *clean assembly:assembly verify > > #mvn *-Dhadoopversion=100* clean deploy -Pdeploy -Pjavadoc > > (would deploy hadoop100 classifier, artifacts) > > > > > > #mvn *-Dhadoopversion=23 *clean assembly:assembly verify > > #mvn *-Dhadoopversion=23* clean deploy -Pdeploy -Pjavadoc > > (would deploy hadoop23 classifier, artifacts) > > > > > > > > > > This would get mrunit with 3 different classifers for the different > hadoop > > platforms. > > > > Would that help ? > > > > > > > > On Tue, Feb 14, 2012 at 10:22 AM, Brock Noland > wrote: > > > >> Hi, > >> > >> Yep! > >> > >> mvn clean assembly:assembly verify > >> mvn clean deploy -Pdeploy -Pjavadoc > >> > >> From https://cwiki.apache.org/confluence/display/MRUNIT/How+to+Release > >> > >> Brock > >> > >> On Tue, Feb 14, 2012 at 12:12 PM, Karthik K wrote: > >> > Can you help with the commands used for the purpose ? > >> > > >> > > >> > > >> > On Tue, Feb 14, 2012 at 7:02 AM, Brock Noland > >> wrote: > >> > > >> >> Hi, > >> >> > >> >> On Sun, Feb 12, 2012 at 1:17 PM, Karthik K > wrote: > >> >> > I have attached a patch to MRUNIT-57 with the configuration of > >> >> classifiers. > >> >> > > >> >> > May be, you can apply it locally and deploy to your apache home > >> directory > >> >> > patch to see if that works ? > >> >> > >> >> I tried that for both 0.20 and 1.0, but the maven repo only has the > 0.20 > >> >> jar: > >> >> > >> >> > >> >> > >> > https://repository.apache.org/content/repositories/orgapachemrunit-227/org/apache/mrunit/mrunit/0.8.0-incubating/ > >> >> > >> >> Brock > >> >> > >> >> -- > >> >> Apache MRUnit - Unit testing MapReduce - > >> >> http://incubator.apache.org/mrunit/ > >> >> > >> > >> > >> > >> -- > >> Apache MRUnit - Unit testing MapReduce - > >> http://incubator.apache.org/mrunit/ > >> > > > > -- > Apache MRUnit - Unit testing MapReduce - > http://incubator.apache.org/mrunit/ > --e89a8fb1f8029d3e4304b8f1b7ad--