spark-instrumented-optimizer/sbin
Aaron Davidson 007a733434 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
2014-03-24 22:24:21 -07:00
..
slaves.sh SPARK-1286: Make usage of spark-env.sh idempotent 2014-03-24 22:24:21 -07:00
spark-config.sh add admin scripts to sbin 2013-09-23 12:42:34 +08:00
spark-daemon.sh SPARK-1286: Make usage of spark-env.sh idempotent 2014-03-24 22:24:21 -07:00
spark-daemons.sh Merge branch 'scripts-reorg' of github.com:shane-huang/incubator-spark into spark-915-segregate-scripts 2014-01-02 17:55:21 +05:30
spark-executor sbin/spark-class* -> bin/spark-class* 2014-01-03 15:08:01 +05:30
start-all.sh Bundle tachyon: SPARK-1269 2014-03-18 22:04:57 -07:00
start-master.sh SPARK-1286: Make usage of spark-env.sh idempotent 2014-03-24 22:24:21 -07:00
start-slave.sh [SPARK-1041] remove dead code in start script, remind user to set that in spark-env.sh 2014-02-22 20:21:15 -08:00
start-slaves.sh SPARK-1286: Make usage of spark-env.sh idempotent 2014-03-24 22:24:21 -07:00
stop-all.sh add admin scripts to sbin 2013-09-23 12:42:34 +08:00
stop-master.sh Bundle tachyon: SPARK-1269 2014-03-18 22:04:57 -07:00
stop-slaves.sh SPARK-1286: Make usage of spark-env.sh idempotent 2014-03-24 22:24:21 -07:00