1.
单机运行spark
启动spark:
./sbin/start-master.sh
启动worker:
./bin/spark-class org.apache.spark.deploy.worker.Worker spark://gry-VirtualBox:7077 (通过localhost:8080得到)
提交jar包:
./bin/spark-submit --master spark://gry-VirtualBox:7077 --class WordCount /home/gry/submitJars/test.jar