wget http://archive.apache.org/dist/mahout/0.9/mahout-distribution-0.9.tar.gz
tar -zxvf mahout-distribution-0.9.tar.gz
# set mahout environment export mahout_home=/usr/local/src/mahout-distribution-0.9 export mahout_conf_dir=$mahout_home/conf export path=$mahout_home/conf:$mahout_home/bin:$path
# set hadoop environment export hadoop_home=/usr/local/src/hadoop-1.2.1 export hadoop_conf_dir=$hadoop_home/conf export path=$path:$hadoop_home/bin export hadoop_home_warn_suppress=not_null
直接执行mahout命令
支持算法列表
数据格式: 1,100001,5 1,100002,3 1,100003,4 1,100004,3 1,100005,3 1,100007,4 1,100008,1 1,100009,5 1,1000011,2
input="/movie_lens.data" tmp_dir="/mahout_temp" output="/cf_mahout_output" mahout_cmd="/usr/local/src/mahout-distribution-0.9/bin/mahout“ $mahout_cmd itemsimilarity -i $input -o $output --maxsimilaritiesperitem 1000 --threshold 0.0000001 --similarityclassname similarity_cosine --tempdir $tmp_dir
如对本文有疑问, 点击进行留言回复!!
去 HBase,Kylin on Parquet 性能表现如何?
如何找到Hive提交的SQL相对应的Yarn程序的applicationId
如何在 HBase Shell 命令行正常查看十六进制编码的中文?哈哈~
网友评论