jdk-1.8+scala-2.11.X+python-2.7
mkdir -p /opt/cloudera/csd
修改权限
chown cloudera-scm:cloudera-scm /opt/cloudera/csd
获取csd(放到/opt/cloudera/csd目录)
wget http://archive.cloudera.com/spark2/csd/SPARK2_ON_YARN-2.1.0.cloudera2.jar
修改组权限和用户权限
chgrp cloudera-scm SPARK2_ON_YARN-2.1.0.cloudera2.jar
chown cloudera-scm SPARK2_ON_YARN-2.1.0.cloudera2.jar
注意:
(1)2.1.0.cloudera2 和2.1.0.cloudera1的区别
(详见表格:
https://www.cloudera.com/documentation/spark2/latest/topics/spark2_requirements.html
https://www.cloudera.com/documentation/spark2/latest/topics/spark2_packaging.html#versions
https://www.cloudera.com/documentation/spark2/latest/topics/spark2_requirements.html
)
(2)jar版本要和此处的2.1.0.cloudera2或者2.1.0.cloudera1版本一致
url----->http://archive.cloudera.com/spark2/parcels/2.1.0.cloudera2/
等待下载结束
#/opt/cloudera-manager/cm-5.10.0/etc/init.d/cloudera-scm-server restart
#tail -f/opt/cloudera-manager/cm-5.10.0/log/cloudera-scm-server/cloudera-scm-server.log
#tail -f/opt/cloudera-manager/cm-5.10.0/log/cloudera-scm-agent/cloudera-scm-agent.log
spark-shell --conf spark.executor.memory=2g --confspark.executor.cores=2
https://spark.apache.org/docs/2.1.0/quick-start.html
参考:
https://www.cloudera.com/documentation/spark2/2-1-x/topics/spark2_installing.html
http://zhm8.cn/2017/08/05/CDH%20%E5%AE%89%E8%A3%85spark2.1/
http://www.aboutyun.com/thread-20842-1-1.html
http://blog.csdn.net/u010936936/article/details/73650417
运行spark2的样例
https://www.cloudera.com/documentation/spark2/2-1-x/topics/spark_running_apps.html