下載地址java
2.jdk安裝apache
jdk1.8 ide
[root@k8s_master01 spark-2.1.1-local]# java -version 測試
java version "1.8.0_60"ui
Java(TM) SE Runtime Environment (build 1.8.0_60-b27)spa
Java HotSpot(TM) 64-Bit Server VM (build 25.60-b23, mixed mode)blog
[root@k8s_master01 spark-2.1.1-local]# ci
3.解壓便可it
4.測試Π求職spark
[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.測試結果