mahout-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gca...@apache.org
Subject svn commit: r1636972 - /mahout/site/mahout_cms/trunk/content/developers/buildingmahout.mdtext
Date Wed, 05 Nov 2014 21:49:01 GMT
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



Mime
View raw message