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 6831F70C8 for ; Fri, 19 Aug 2011 16:42:09 +0000 (UTC) Received: (qmail 82812 invoked by uid 500); 19 Aug 2011 16:42:09 -0000 Delivered-To: apmail-hadoop-mapreduce-dev-archive@hadoop.apache.org Received: (qmail 82735 invoked by uid 500); 19 Aug 2011 16:42:07 -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 82726 invoked by uid 99); 19 Aug 2011 16:42:07 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Aug 2011 16:42:07 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [209.85.213.48] (HELO mail-yw0-f48.google.com) (209.85.213.48) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Aug 2011 16:42:01 +0000 Received: by ywb26 with SMTP id 26so3187857ywb.35 for ; Fri, 19 Aug 2011 09:41:40 -0700 (PDT) Received: by 10.91.199.4 with SMTP id b4mr2604833agq.11.1313772098491; Fri, 19 Aug 2011 09:41:38 -0700 (PDT) MIME-Version: 1.0 Received: by 10.231.49.71 with HTTP; Fri, 19 Aug 2011 09:41:08 -0700 (PDT) In-Reply-To: References: From: Matt Foley Date: Fri, 19 Aug 2011 09:41:08 -0700 Message-ID: Subject: Re: Picking up local common changes in mr To: mapreduce-dev@hadoop.apache.org Content-Type: multipart/alternative; boundary=0016367657cd3f139d04aade67fd X-Virus-Checked: Checked by ClamAV on apache.org --0016367657cd3f139d04aade67fd Content-Type: text/plain; charset=ISO-8859-1 Thanks for the nice clear statement, Alejandro. --Matt On Thu, Aug 18, 2011 at 4:40 PM, Alejandro Abdelnur wrote: > 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 and > > 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=internal 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=true in the new MR build? ie > > > > how do you get a a local common change to get picked up by mr? > > > > > > > > Thanks, > > > > Eli > > > > > > > > > > --0016367657cd3f139d04aade67fd--