mvn clean package -Dhadoop2.version=2.3.0
-DskipTests
mvn clean package -Dhadoop.version=2.3.0
mvn clean package -Dhadoop.profile=200
-DskipTests
-DskipTests
The above commands will not work. Actually, you should download patch and patch mahout0.9 to support hadoop2 using the below build command
mvn clean install -Dhadoop2 -Dhadoop2.version=2.3.0 -DskipTests=true
So, I change to use current trunk codes (1.0-snapshot)
#svn co http://svn.apache.org/repos/asf/mahout/trunk mahtout1.0
#mvn clean install -Dhadoop2 -Dhadoop2.version=2.3.0 -DskipTests=true
Run example in mahout
1. start hadoop cluster
2.# mahout recommenditembased --input mahout/item.txt --output mahout/ --booleanData true -s SIMILARITY_COOCCURRENCE
CLASS=org.apache.mahout.driver.MahoutDriver for f in $MAHOUT_HOME/examples/target/mahout-examples-*-job.jar $MAHOUT_HOME/mahout-examples-*-job.jar ; do if [ -e "$f" ]; then MAHOUT_JOB=$f fi done
But a error occures
rowsimilarityjob doesn't clean it's temp dir, and fails when seeing it again
https://issues.apache.org/jira/browse/MAHOUT-834
When during the media time, i delete temp/weights in hdfs maually. and the job works well.