Return-Path: X-Original-To: apmail-mahout-commits-archive@www.apache.org Delivered-To: apmail-mahout-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3A52517D95 for ; Wed, 5 Nov 2014 21:49:55 +0000 (UTC) Received: (qmail 53630 invoked by uid 500); 5 Nov 2014 21:49:55 -0000 Delivered-To: apmail-mahout-commits-archive@mahout.apache.org Received: (qmail 53573 invoked by uid 500); 5 Nov 2014 21:49:55 -0000 Mailing-List: contact commits-help@mahout.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@mahout.apache.org Delivered-To: mailing list commits@mahout.apache.org Received: (qmail 53562 invoked by uid 99); 5 Nov 2014 21:49:55 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Nov 2014 21:49:55 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Nov 2014 21:49:32 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 854FB23888FE; Wed, 5 Nov 2014 21:49:01 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1636972 - /mahout/site/mahout_cms/trunk/content/developers/buildingmahout.mdtext Date: Wed, 05 Nov 2014 21:49:01 -0000 To: commits@mahout.apache.org From: gcapan@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20141105214901.854FB23888FE@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: gcapan Date: Wed Nov 5 21:49:00 2014 New Revision: 1636972 URL: http://svn.apache.org/r1636972 Log: CMS commit to mahout by gcapan Modified: mahout/site/mahout_cms/trunk/content/developers/buildingmahout.mdtext Modified: mahout/site/mahout_cms/trunk/content/developers/buildingmahout.mdtext URL: http://svn.apache.org/viewvc/mahout/site/mahout_cms/trunk/content/developers/buildingmahout.mdtext?rev=1636972&r1=1636971&r2=1636972&view=diff ============================================================================== --- mahout/site/mahout_cms/trunk/content/developers/buildingmahout.mdtext (original) +++ mahout/site/mahout_cms/trunk/content/developers/buildingmahout.mdtext Wed Nov 5 21:49:00 2014 @@ -18,35 +18,40 @@ or git clone https://github.com/apache/mahout.git +##Hadoop version +Mahout code depends on hadoop-client artifact, with the default version 2.2.0. To build Mahout against to a +different hadoop version, hadoop.version property should be set accordingly and passed to the build command. +Hadoop1 clients would additionally require hadoop1 profile to be activated. + +The build lifecycle is illustrated below. + ## Compiling Compile Mahout using standard maven commands - # With hadoop-1.2.1 dependency - mvn clean install - # With hadoop-2.2.0 dependency - mvn -Dhadoop2.version=2.2.0 clean install - -Mahout has an extensive test suite which takes some time to run. If you just want to build Mahout, skip the tests like this + mvn clean compile # With hadoop-1.2.1 dependency - mvn -DskipTests clean install + mvn -Phadoop1 -Dhadoop.version=1.2.1 clean compile - # With hadoop-2.2.0 dependency - mvn -Dhadoop2.version=2.2.0 -DskipTests clean install +##Packaging +Mahout has an extensive test suite which takes some time to run. If you just want to build Mahout, skip the tests like this -## Packaging - -In order to build the mahout jars, run + # With hadoop-2.2.0 dependency + mvn -DskipTests=true clean package - mvn clean package + # With hadoop-1.2.1 dependency + mvn -Phadoop1 -Dhadoop.version=1.2.1 -DskipTests=true clean package -Or to build Mahout against to a hadoop-2 cluster (version 2.2.0, for example), run - mvn -Dhadoop2.version=2.2.0 clean package +In order to add mahout artifact to your local repository, run + # With hadoop-2.2.0 dependency + mvn clean install + # With hadoop-1.2.1 dependency + mvn -Phadoop1 -Dhadoop.version=1.2.1 clean install \ No newline at end of file