aboutsummaryrefslogtreecommitdiff
path: root/sbin/start-history-server.sh
diff options
context:
space:
mode:
authorwitgo <witgo@qq.com>2014-08-25 19:22:27 -0700
committerAndrew Or <andrewor14@gmail.com>2014-08-25 19:22:40 -0700
commit4d6a0e920974a5d50348ba9f7377b48e43c2da16 (patch)
tree49fd1d9cc1fd78b773b36afc28ab3aa6251532e6 /sbin/start-history-server.sh
parentb5dc9b43bcdcbdb5ffddbda6235443f3d7411b7a (diff)
downloadspark-4d6a0e920974a5d50348ba9f7377b48e43c2da16.tar.gz
spark-4d6a0e920974a5d50348ba9f7377b48e43c2da16.tar.bz2
spark-4d6a0e920974a5d50348ba9f7377b48e43c2da16.zip
SPARK-2481: The environment variables SPARK_HISTORY_OPTS is covered in spark-env.sh
Author: witgo <witgo@qq.com> Author: GuoQiang Li <witgo@qq.com> Closes #1341 from witgo/history_env and squashes the following commits: b4fd9f8 [GuoQiang Li] review commit 0ebe401 [witgo] *-history-server.sh load spark-config.sh (cherry picked from commit 9f04db17e50568d5580091add9100693177d7c4f) Signed-off-by: Andrew Or <andrewor14@gmail.com>
Diffstat (limited to 'sbin/start-history-server.sh')
-rwxr-xr-xsbin/start-history-server.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/sbin/start-history-server.sh b/sbin/start-history-server.sh
index e30493da32..580ab471b8 100755
--- a/sbin/start-history-server.sh
+++ b/sbin/start-history-server.sh
@@ -27,6 +27,9 @@
sbin=`dirname "$0"`
sbin=`cd "$sbin"; pwd`
+. "$sbin/spark-config.sh"
+. "$SPARK_PREFIX/bin/load-spark-env.sh"
+
if [ $# != 0 ]; then
echo "Using command line arguments for setting the log directory is deprecated. Please "
echo "set the spark.history.fs.logDirectory configuration option instead."