http://www.cnblogs.com/weiqiang-liu/p/3791330.html
一:下載軟件包
下載鏈接:
1 http://mirrors.hust.edu.cn/apache/mahout/0.9/
二:解壓文件
tar -zxvf mahout-distribution-0.9-src.tar.gz -C /usr/share/
tar -zxvf mahout-distribution-0.9.tar.gz -C /usr/share/
三:編譯源碼
1.cd /usr/share/mahout-distribution-0.9-src
2.打補丁:下載補丁文件,然后使用patch命令打補丁
Wget https://issues.apache.org/jira/secure/attachment/12629768/1329.patch
patch -p0 < 1329.patch
3.編譯
1 mvn clean package -Dhadoop.profile=200 -Dhadoop.2.version=2.2.0 -Dhbase.version=0.68.0-hadoop2 -DskipTests
四:替換jar包
用剛編譯的jar文件替換(/usr/share/mahout-distribution-0.9)目錄下的jar,共6個。
1 2 3 4 5 6 7 8 9 10 11 | mahout-core- 0.9 .jar
mahout-core- 0.9 -job.jar
mahou -examples- 0.9 .jar
mahout-examples- 0.9 -job.jar
mahout-integration- 0.9 .jar
mahout-math- 0.9 .jar
|
posted on 2014-12-04 17:24
SIMONE 閱讀(427)
評論(0) 編輯 收藏 所屬分類:
hadoop mahout