mahout-0.7-cdh4.5.0安装
1、下载mahout:http://archive.cloudera.com/cdh4/cdh/4/mahout-0.7-cdh4.6.0.tar.gz
2、解压:mahout-0.7-cdh4.5.0.tar.gz
3、改名:mv mahout-0.7-cdh4.5.0 mahout
4、添加环境变量/tec/profile:
export MAHOUT_HOME=/usr/local/mahout
export CLASSPATH=.:$CLASSPATH:$MAHOUT_HOME/lib
export PATH=$PATH:$MAHOUT_HOME/bin
5、验证:
5.1)、下载测试数据:wget http://archive.ics.uci.edu/ml/databases/synthetic_control/synthetic_control.data
5.2)、创建Hadoop目录:hadoop fs -mkdir testdata
5.3)、上传文件:hadoop fs -put synthetic_control.data testdata
5.4)、运行程序:hadoop jar /usr/local/mahout/mahout-examples-0.5-job.jar org.apache.mahout.clustering.syntheticcontrol.kmeans.Job
由此可见,安装mahout的服务器必须先安装hadoop。
相关阅读:
相关推荐
genshengxiao 2020-02-17
GMCWXH 2014-07-19
NeboFeng 2014-07-17
ApachePHPMySQL 2013-10-02
hanwentan 2011-07-27
junzhenchen 2012-02-10
繌子 2011-04-17
xiajlxiajl 2010-07-01
Harper 2011-09-23
Sweeneyzuo 2018-07-11
godot0 2017-04-27
danwenxuan 2016-01-26
loveyy 2014-09-08
xuexi 2014-09-07
shenghaomail 2014-04-09
hadoop 2014-01-01
zwjcyz 2013-09-10