解压到/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
观察网页
http://192.168.56.101:4040/jobs/