From 9f04db17e50568d5580091add9100693177d7c4f Mon Sep 17 00:00:00 2001
From: witgo <witgo@qq.com>
Date: Mon, 25 Aug 2014 19:22:27 -0700
Subject: [PATCH] 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
---
 sbin/start-history-server.sh | 3 +++
 1 file changed, 3 insertions(+)

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."
-- 
GitLab