-
下载地址
2.jdk安装
jdk1.8
[root@k8s_master01 spark-2.1.1-local]# java -version
java version "1.8.0_60"
Java(TM) SE Runtime Environment (build 1.8.0_60-b27)
Java HotSpot(TM) 64-Bit Server VM (build 25.60-b23, mixed mode)
[root@k8s_master01 spark-2.1.1-local]#
3.解压即可
4.测试Π求职
[root@k8s_master01 bin]# pwd
/opt/spark/spark-2.1.1-local
[root@k8s_master01 bin]# bin/spark-submit --class org.apache.spark.examples.SparkPi --master local[2] ./examples/jars/spark-examples_2.11-2.1.1.jar 100
5.测试结果