spark1.3.1搭配hadoop2.6.0,同时支持standalone和yarn
spark-env.sh
export SCALA_HOME=/home/hadoop/scala-2.11.6 #standalone SPARK_WORKER_CORES=8 SPARK_WORKER_MEMORY=16384M #yarn export HADOOP_HOME=/home/hadoop/hadoop-2.6.0 export HADOOP_CONF_DIR=$HADOOP_HOME/etc/hadoop SPARK_EXECUTOR_INSTANCES=24 SPARK_EXECUTOR_CORES=8 SPARK_EXECUTOR_MEMORY=16384M SPARK_DRIVER_MEMORY=16384M SPARK_YARN_APP_NAME="Spark 1.3.1"