解壓到/usr/local目錄麸锉,并修改目錄名為spark
[root@localhost spark]# pwd
/usr/local/spark
[root@localhost spark]# ls
bin conf data examples jars jdk-8u144-linux-x64.tar.gz LICENSE licenses NOTICE python R README.md RELEASE sbin yarn
[root@localhost spark]# tail -1 conf/spark-env.sh
JAVA_HOME=/usr/local/jdk/
運行測試jar包
[root@localhost spark]# ./bin/spark-submit --class org.apache.spark.examples.SparkPi ./examples/jars/spark-examples_2.11-2.0.0.jar 10000
觀察網(wǎng)頁
http://192.168.56.101:4040/jobs/