-
- Downloads
SPARK-1286: Make usage of spark-env.sh idempotent
Various spark scripts load spark-env.sh. This can cause growth of any variables that may be appended to (SPARK_CLASSPATH, SPARK_REPL_OPTS) and it makes the precedence order for options specified in spark-env.sh less clear. One use-case for the latter is that we want to set options from the command-line of spark-shell, but these options will be overridden by subsequent loading of spark-env.sh. If we were to load the spark-env.sh first and then set our command-line options, we could guarantee correct precedence order. Note that we use SPARK_CONF_DIR if available to support the sbin/ scripts, which always set this variable from sbin/spark-config.sh. Otherwise, we default to the ../conf/ as usual. Author: Aaron Davidson <aaron@databricks.com> Closes #184 from aarondav/idem and squashes the following commits: e291f91 [Aaron Davidson] Use "private" variables in load-spark-env.sh 8da8360 [Aaron Davidson] Add .sh extension to load-spark-env.sh 93a2471 [Aaron Davidson] SPARK-1286: Make usage of spark-env.sh idempotent
Showing
- bin/compute-classpath.sh 1 addition, 4 deletionsbin/compute-classpath.sh
- bin/load-spark-env.sh 35 additions, 0 deletionsbin/load-spark-env.sh
- bin/pyspark 1 addition, 4 deletionsbin/pyspark
- bin/run-example 1 addition, 4 deletionsbin/run-example
- bin/spark-class 1 addition, 4 deletionsbin/spark-class
- bin/spark-shell 1 addition, 3 deletionsbin/spark-shell
- sbin/slaves.sh 1 addition, 3 deletionssbin/slaves.sh
- sbin/spark-daemon.sh 1 addition, 3 deletionssbin/spark-daemon.sh
- sbin/start-master.sh 1 addition, 3 deletionssbin/start-master.sh
- sbin/start-slaves.sh 1 addition, 3 deletionssbin/start-slaves.sh
- sbin/stop-slaves.sh 1 addition, 3 deletionssbin/stop-slaves.sh
Loading
Please register or sign in to comment