用户组:游客
./make-distribution.sh --hadoop 2.2.0 --with-yarn --tgz
[root@hadoop1 hadoop]# tar zxf spark-0.9.0-incubating-hadoop_2.2.0-bin.tar.gz [root@hadoop1 hadoop]# mv spark-0.9.0-incubating spark090 [root@hadoop1 hadoop]# cd spark090 [root@hadoop1 spark090]# ls -lsa
[root@hadoop1 spark090]# vi conf/slaves [root@hadoop1 spark090]# cat conf/slaves [root@hadoop1 spark090]# vi conf/spark-env.sh [root@hadoop1 spark090]# cat conf/spark-env.sh
[root@hadoop1 spark090]# cd .. [root@hadoop1 hadoop]# chown -R hadoop:hadoop spark090 [root@hadoop1 hadoop]# su - hadoop [hadoop@hadoop1 ~]$ cd /app/hadoop/ [hadoop@hadoop1 hadoop]$ scp -r spark090 hadoop2:/app/hadoop/ [hadoop@hadoop1 hadoop]$ scp -r spark090 hadoop3:/app/hadoop/ [hadoop@hadoop1 hadoop]$ scp -r spark090 hadoop4:/app/hadoop/ [hadoop@hadoop1 hadoop]$ scp -r spark090 hadoop5:/app/hadoop/
[hadoop@hadoop1 hadoop]$ cd spark090 [hadoop@hadoop1 spark090]$ sbin/start-all.sh
./run-example org.apache.spark.examples.SparkKMeans spark://hadoop1:7077 ./kmeans_data.txt 2
使用道具 举报
本版积分规则 发表回复 回帖后跳转到最后一页
中级会员
65
主题
帖子
8
粉丝
查看 »