[caimh@master-node spark-2.1.1]$ ./bin/spark-submit \
> --class org.apache.spark.examples.SparkPi \
> --master spark://master-node:7077 \
> --executor-memory 2g \ --每个executor使用的内存大小
> --total-executor-cores 12 \ --整个app使用的核数
> ./examples/jars/spark-examples_2.11-2.1.1.jar 100