spark-instrumented-optimizer/bin
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
..
compute-classpath.cmd sbin/compute-classpath* bin/compute-classpath* 2014-01-03 15:12:29 +05:30
compute-classpath.sh SPARK-1286: Make usage of spark-env.sh idempotent 2014-03-24 22:24:21 -07:00
load-spark-env.sh SPARK-1286: Make usage of spark-env.sh idempotent 2014-03-24 22:24:21 -07:00
pyspark SPARK-1286: Make usage of spark-env.sh idempotent 2014-03-24 22:24:21 -07:00
pyspark.cmd moved user scripts to bin folder 2013-09-23 12:46:48 +08:00
pyspark2.cmd Merge branch 'scripts-reorg' of github.com:shane-huang/incubator-spark into spark-915-segregate-scripts 2014-01-02 17:55:21 +05:30
run-example SPARK-1286: Make usage of spark-env.sh idempotent 2014-03-24 22:24:21 -07:00
run-example.cmd moved user scripts to bin folder 2013-09-23 12:46:48 +08:00
run-example2.cmd Merge pull request #534 from sslavic/patch-1. Closes #534. 2014-02-04 09:47:11 -08:00
spark-class SPARK-1286: Make usage of spark-env.sh idempotent 2014-03-24 22:24:21 -07:00
spark-class.cmd sbin/spark-class* -> bin/spark-class* 2014-01-03 15:08:01 +05:30
spark-class2.cmd SPARK-929: Fully deprecate usage of SPARK_MEM 2014-03-09 11:08:39 -07:00
spark-shell SPARK-1286: Make usage of spark-env.sh idempotent 2014-03-24 22:24:21 -07:00
spark-shell.cmd Fixed Window spark shell launch script error. 2014-01-16 16:09:10 +08:00