Return-Path: X-Original-To: apmail-hadoop-mapreduce-dev-archive@minotaur.apache.org Delivered-To: apmail-hadoop-mapreduce-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 52EBC7942 for ; Fri, 19 Aug 2011 16:52:23 +0000 (UTC) Received: (qmail 13973 invoked by uid 500); 19 Aug 2011 16:52:22 -0000 Delivered-To: apmail-hadoop-mapreduce-dev-archive@hadoop.apache.org Received: (qmail 13900 invoked by uid 500); 19 Aug 2011 16:52:22 -0000 Mailing-List: contact mapreduce-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: mapreduce-dev@hadoop.apache.org Delivered-To: mailing list mapreduce-dev@hadoop.apache.org Received: (qmail 13892 invoked by uid 99); 19 Aug 2011 16:52:22 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Aug 2011 16:52:22 +0000 X-ASF-Spam-Status: No, hits=3.3 required=5.0 tests=HTML_MESSAGE,NO_RDNS_DOTCOM_HELO,RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: 216.145.54.173 is neither permitted nor denied by domain of evans@yahoo-inc.com) Received: from [216.145.54.173] (HELO mrout3.yahoo.com) (216.145.54.173) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Aug 2011 16:52:16 +0000 Received: from sp1-ex07cas03.ds.corp.yahoo.com (sp1-ex07cas03.ds.corp.yahoo.com [216.252.116.151]) by mrout3.yahoo.com (8.14.4/8.14.4/y.out) with ESMTP id p7JGpl6N081757 for ; Fri, 19 Aug 2011 09:51:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yahoo-inc.com; s=cobra; t=1313772707; bh=0qh9cOFUyvdrM05XZDytbU5fnACh7A1HJXZy/KjlwnE=; h=From:To:Date:Subject:Message-ID:In-Reply-To:Content-Type: MIME-Version; b=smPjQWnpa9Sb59s9pzWent/ld3ZNZhmY7iTCTeYq6GLY0Rmgb6Md/hhjCj0NoCas9 D80ZNy/y5+Owcm/KE+ru/o2N7H8tXdaeRFHkXPSXEJ1qKU81F9VxQhXW8VANAeb4P1 LdE5xyW9GI8jA9oYEuJ0DqP7qei2cLSBmhjGt8cM= Received: from SP1-EX07VS02.ds.corp.yahoo.com ([216.252.116.135]) by sp1-ex07cas03.ds.corp.yahoo.com ([216.252.116.151]) with mapi; Fri, 19 Aug 2011 09:51:46 -0700 From: Robert Evans To: "mapreduce-dev@hadoop.apache.org" Date: Fri, 19 Aug 2011 09:51:43 -0700 Subject: Re: Picking up local common changes in mr Thread-Topic: Picking up local common changes in mr Thread-Index: AcxejwqovfMO2BpNR7izkpztbSUSEAAATtcx Message-ID: In-Reply-To: Accept-Language: en-US Content-Language: en X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: multipart/alternative; boundary="_000_CA73FECF27A9Eevansyahooinccom_" MIME-Version: 1.0 --_000_CA73FECF27A9Eevansyahooinccom_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable One thing to be aware of is that with -SNAPSHOT at the end of the version M= aven will start looking at dates. So if you have a 0.23.0-SNAPSHOT that yo= u personally modified/built in your .m2 repository and go to build somethin= g that depends on it. If the nightly build has pushed it to the apache rep= o after you built your version maven might download the "newer" version rep= lacing your changes. If you changes impact multiple components then your c= hoices are to always build the entire project (or at least the subset that = has dependent changes) or always build with -o after your initial build/ins= tall. --Bobby On 8/19/11 11:41 AM, "Matt Foley" wrote: Thanks for the nice clear statement, Alejandro. --Matt On Thu, Aug 18, 2011 at 4:40 PM, Alejandro Abdelnur wrot= e: > This is handled by maven reactor. > > When your run Maven in a multimodule project (like we have), all modules > that are part of the build (from the dir where you are) down are used for > the build/test/packaging, all modules that are not part of the build are > picked up from .m2/repo. > > For example > > "cd trunk/hadoop-mapreduce;mvn compile" uses hadoop-common & hadoop-hdfs > from m2/repo > > "cd trunk;mvn compile" uses hadoop-common, hadoop-hdfs, hadoop-mapreduce > from the build. > > HTH > > Thxs. > > Alejandro > > > On Thu, Aug 18, 2011 at 4:35 PM, Matt Foley > wrote: > > > Since we put all the effort into "un-splitting" the components, shouldn= 't > > we > > have a switch > > that causes, eg, the MAPREDUCE build to pick up artifacts from COMMON a= nd > > HDFS builds > > in specified sibling directories, without using m2 as an intermediary? > > > > Of course it should respect dependencies (via maven) so that if HDFS > source > > has been modified, > > the HDFS artifacts will also be rebuilt before MAPREDUCE uses them :-) > > > > --Matt > > > > On Thu, Aug 18, 2011 at 3:30 PM, Giridharan Kesavan < > > gkesavan@hortonworks.com> wrote: > > > > > Hello, > > > > > > Its the same -Dresolvers=3Dinternal for the ant build system; For the > > > maven/yarn build system as long as you have the latest common jar in > > > the m2 cache its going to resolve common from the maven cache. If not > > > from the apache maven repo. You can force the builds to use the cache > > > by adding -o option. (offline builds) > > > > > > Thanks, > > > Giri > > > > > > On Thu, Aug 18, 2011 at 3:19 PM, Eli Collins wrote= : > > > > Hey gang, > > > > > > > > What's the new equivalent of resolvers=3Dtrue in the new MR build? = ie > > > > how do you get a a local common change to get picked up by mr? > > > > > > > > Thanks, > > > > Eli > > > > > > > > > > --_000_CA73FECF27A9Eevansyahooinccom_--