spark學習

  1. 下載地址java

    image.png

   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

image.png

   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.測試結果

image.png

相關文章
相關標籤/搜索