码迷,mamicode.com
首页 > 其他好文 > 详细

《OD大数据实战》Mahout入门实例

时间:2016-08-31 18:42:21      阅读:133      评论:0      收藏:0      [点我收藏+]

标签:

一、环境搭建

1. 下载

mahout-0.9-cdh5.3.6.tar.gz

2. 解压

 

3. 

mahout org.apache.mahout.clustering.syntheticcontrol.kmeans.Job

hdfs dfs -ls /output

转换成普通文本

hdfs dfs -ls /output/clusteredPoints

mahout seqdumper -i output/clusteredPoints -o dataset/clusteredPoints

cat clusteredPoints | more

cat clusteredPoints | awk `{print $2}` | sort | uniq 

mahout vectordump -i output/data -o dataset/raw_data

 

《OD大数据实战》Mahout入门实例

标签:

原文地址:http://www.cnblogs.com/yeahwell/p/5826972.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!