Mahout: build 0.9 support hadoop2.3.0

mvn  clean package -Dhadoop2.version=2.3.0 -DskipTests
mvn  clean package -Dhadoop.version=2.3.0 -DskipTests
mvn clean package -Dhadoop.profile=200  -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.
The input is likes
1,2
1,3
1,5
2,1
2,2
2,4
3,3
3,4
4,5
4,2
 The output likes:
1	[4:2.0,1:1.0]
2	[5:2.0,3:2.0]
3	[2:2.0,5:1.0,1:1.0]
4	[3:2.0,1:1.0,4:1.0]
 

 -------------------------

#mahout  command could run examples in mahout. The default props files in /path/to/mahout1.0/src/conf/

the entrence of mahout command is org.apache.mahout.driver.MahoutDriver

#mahout recommenditembased --input mahout/item.txt --output mahout/ --booleanData true -s SIMILARITY_COOCCURRENCE

will invoke class org.apache.mahout.cf.taste.hadoop.item.RecommenderJob which in now in mahout-mrlegacy dir

which is located in mahout/src/conf/driver.classes.default.props

org.apache.mahout.cf.taste.hadoop.item.RecommenderJob = recommenditembased

 

 

 

 

 

References

https://issues.apache.org/jira/browse/MAHOUT-1329

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值