Return-Path: X-Original-To: apmail-hbase-dev-archive@www.apache.org Delivered-To: apmail-hbase-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 461BE11381 for ; Wed, 20 Aug 2014 19:29:08 +0000 (UTC) Received: (qmail 23800 invoked by uid 500); 20 Aug 2014 19:29:07 -0000 Delivered-To: apmail-hbase-dev-archive@hbase.apache.org Received: (qmail 23719 invoked by uid 500); 20 Aug 2014 19:29:07 -0000 Mailing-List: contact dev-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hbase.apache.org Delivered-To: mailing list dev@hbase.apache.org Received: (qmail 23698 invoked by uid 99); 20 Aug 2014 19:29:07 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Aug 2014 19:29:07 +0000 X-ASF-Spam-Status: No, hits=2.5 required=5.0 tests=FREEMAIL_REPLY,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of ndimiduk@gmail.com designates 209.85.214.174 as permitted sender) Received: from [209.85.214.174] (HELO mail-ob0-f174.google.com) (209.85.214.174) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Aug 2014 19:29:02 +0000 Received: by mail-ob0-f174.google.com with SMTP id vb8so6617586obc.5 for ; Wed, 20 Aug 2014 12:28:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=1qMVQVXq7QJUF7brX0Biu/kyVtZBMIF1JodxXxLTsIA=; b=IYiM6nTOjDLsN2wHbTq3B3UXDbBRxSnD7YVGyWhsXAPvwRLLA37zqcnl6y8Ma9eXFF 5DjgQ8E3dvwWHJygcDWAhhwFCR9qVLvH9MUzLUitrttLHKFPFYcuugRkG130dp64M+Ce 2J82cj9/hQqFqR4gvMSPjbAHKAXeNuSylm9tC9Nn5ZzYby/peMIz4JDhkMG/Y883kL6O gPTNsrTgQTQPzw1O1iQ7GT0EmuJmJEAhTd36aQP0MGD55/yFYp0l0usRK7lZZ6zOwm23 DMvz55F9S/kNxoplU0eNNHM6illdQZR4DOI4A/H+eXnc0PG13ElkFpXS39LA9AkqIQ1m 1pNw== X-Received: by 10.182.33.33 with SMTP id o1mr51490225obi.24.1408562922165; Wed, 20 Aug 2014 12:28:42 -0700 (PDT) MIME-Version: 1.0 Received: by 10.182.114.163 with HTTP; Wed, 20 Aug 2014 12:28:22 -0700 (PDT) In-Reply-To: References: From: Nick Dimiduk Date: Wed, 20 Aug 2014 12:28:22 -0700 Message-ID: Subject: Re: 0.98-trunk build (pom) issue To: hbase-dev Content-Type: multipart/alternative; boundary=001a11c1fe1e9e9c800501149ccb X-Virus-Checked: Checked by ClamAV on apache.org --001a11c1fe1e9e9c800501149ccb Content-Type: text/plain; charset=UTF-8 On Wed, Aug 20, 2014 at 12:12 PM, Ted Yu wrote: > Minor correction: -Dhadoop-two.version=2.3.0 should be used. > Ha! Good catch Ted. On Wed, Aug 20, 2014 at 12:07 PM, Nick Dimiduk wrote: > > > The hadoop related profiles are for major versions (in branch-1 and > > master). We have "hadoop-2.0" (current default) and "hadoop-3.0" (enabled > > by specifying -Dhadoop.profile=3.0). I don't know why profiles are > enabled > > via property instead of by specifying the property (-P). These profiles > > specify which hbase modules and dependency artifact (not version) should > be > > used. > > > > The exact hadoop version is specified by a separate property. The > > hadoop-2.0 profile check the property "hadoop-two.version". The > hadoop-3.0 > > profile appears to use "hadoop.version" property. > > > > So to build branch-1 vs hadoop-2.3.0, you would use "mvn > > -Phadoop-two.version=2.3.0". > > > > At least, that's what it looks like by reading the pom. Any patches to > > clean these parts of the build are welcome ;) > > > > -n > > > > > > On Wed, Aug 20, 2014 at 11:55 AM, Jean-Marc Spaggiari < > > jean-marc@spaggiari.org> wrote: > > > > > " don't specify hadoop.profile unless != 2.0." > > > > > > So if we build against 2.3.0 should we specify -Phadoop.profile=2.3 ? > Or > > we > > > don't specify unless != 2.x? > > > > > > Thanks, > > > > > > JM > > > > > > > > > 2014-08-14 14:03 GMT-04:00 Esteban Gutierrez : > > > > > > > What Andrew said. I'm building against 2.3.0 without any issue so > far. > > > > > > > > cheers, > > > > esteban. > > > > > > > > > > > > -- > > > > Cloudera, Inc. > > > > > > > > > > > > > > > > On Thu, Aug 14, 2014 at 10:58 AM, Andrew Purtell < > apurtell@apache.org> > > > > wrote: > > > > > > > > > Oh. Sorry. Just remembered... to select the default profile you > don't > > > > > specify hadoop.profile. -Phadoop.profile=2.0 will cause issues, > yes, > > > > don't > > > > > specify hadoop.profile unless != 2.0. And IIRC specifying a > specific > > > > Hadoop > > > > > 2 version requires: > > > > > > > > > > -Dhadoop.version=2.x.x -Dhadoop-two.version=2.x.x > > > > > > > > > > > > > > > > > > > > > > > > > On Thu, Aug 14, 2014 at 10:51 AM, Vladimir Rodionov < > > > > > vladrodionov@gmail.com> > > > > > wrote: > > > > > > > > > > > -Phadoop.version=2.2 worked fine to me. I was able to build > package > > > and > > > > > > create eclipse workspace. I just checked dependencies and all > > hadoop > > > > libs > > > > > > are 2.2? > > > > > > > > > > > > -Vladimir Rodionov > > > > > > > > > > > > > > > > > > On Thu, Aug 14, 2014 at 10:37 AM, Andrew Purtell < > > > apurtell@apache.org> > > > > > > wrote: > > > > > > > > > > > > > There is no hadoop.profile named "2.2". Use "2.0" > > > > > > > > > > > > > > > > > > > > > On Thu, Aug 14, 2014 at 10:34 AM, Vladimir Rodionov < > > > > > > > vladrodionov@gmail.com> > > > > > > > wrote: > > > > > > > > > > > > > > > Actually, -Phadoop.profile=2.2. > > > > > > > > > > > > > > > > -Vladimir Rodionov > > > > > > > > > > > > > > > > > > > > > > > > On Thu, Aug 14, 2014 at 10:28 AM, Jean-Marc Spaggiari < > > > > > > > > jean-marc@spaggiari.org> wrote: > > > > > > > > > > > > > > > > > You should try mvn clean package -DskipTests > > > -Dhadoop.profile=2.0 > > > > > > > > > > > > > > > > > > JM > > > > > > > > > > > > > > > > > > > > > > > > > > > 2014-08-14 13:27 GMT-04:00 Vladimir Rodionov < > > > > > vladrodionov@gmail.com > > > > > > >: > > > > > > > > > > > > > > > > > > > I just synced my local 0.98-trunk and tried to build it: > > > > > > > > > > > > > > > > > > > > mvn clean package -DskipTests -Dhadoop.profile=2.2 > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > [INFO] Scanning for projects... > > > > > > > > > > [ERROR] The build could not read 1 project -> [Help 1] > > > > > > > > > > [ERROR] > > > > > > > > > > [ERROR] The project > > org.apache.hbase:hbase:0.98.6-SNAPSHOT > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > (/Users/vrodionov/Development/hbase/vanila/hbase-0.98-trunk-patch-new/pom.xml) > > > > > > > > > > has 2 errors > > > > > > > > > > [ERROR] > > > > > > 'dependencyManagement.dependencies.dependency.artifactId' > > > > > > > > for > > > > > > > > > > org.apache.hbase:${compat.module}:jar with value > > > > > '${compat.module}' > > > > > > > > does > > > > > > > > > > not match a valid id pattern. @ line 997, column 21 > > > > > > > > > > [ERROR] > > > > > > 'dependencyManagement.dependencies.dependency.artifactId' > > > > > > > > for > > > > > > > > > > org.apache.hbase:${compat.module}:test-jar with value > > > > > > > > '${compat.module}' > > > > > > > > > > does not match a valid id pattern. @ line 1002, column 21 > > > > > > > > > > [ERROR] > > > > > > > > > > [ERROR] To see the full stack trace of the errors, re-run > > > Maven > > > > > > with > > > > > > > > the > > > > > > > > > -e > > > > > > > > > > switch. > > > > > > > > > > [ERROR] Re-run Maven using the -X switch to enable full > > debug > > > > > > > logging. > > > > > > > > > > [ERROR] > > > > > > > > > > [ERROR] For more information about the errors and > possible > > > > > > solutions, > > > > > > > > > > please read the following articles: > > > > > > > > > > [ERROR] [Help 1] > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -Vladimir Rodionov > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > > > Best regards, > > > > > > > > > > > > > > - Andy > > > > > > > > > > > > > > Problems worthy of attack prove their worth by hitting back. - > > Piet > > > > > Hein > > > > > > > (via Tom White) > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > Best regards, > > > > > > > > > > - Andy > > > > > > > > > > Problems worthy of attack prove their worth by hitting back. - Piet > > > Hein > > > > > (via Tom White) > > > > > > > > > > > > > > > --001a11c1fe1e9e9c800501149ccb--