Skip to content

Commit 0ebe401

Browse files
committed
*-history-server.sh load spark-config.sh
1 parent 4243bb6 commit 0ebe401

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

sbin/start-history-server.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@
2727
sbin=`dirname "$0"`
2828
sbin=`cd "$sbin"; pwd`
2929

30+
. "$sbin/spark-config.sh"
31+
. "$SPARK_PREFIX/bin/load-spark-env.sh"
32+
3033
if [ $# != 0 ]; then
3134
echo "Using command line arguments for setting the log directory is deprecated. Please "
3235
echo "set the spark.history.fs.logDirectory configuration option instead."

sbin/stop-history-server.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,7 @@
2222
sbin=`dirname "$0"`
2323
sbin=`cd "$sbin"; pwd`
2424

25+
. "$sbin/spark-config.sh"
26+
. "$SPARK_PREFIX/bin/load-spark-env.sh"
27+
2528
"$sbin"/spark-daemon.sh stop org.apache.spark.deploy.history.HistoryServer 1

0 commit comments

Comments
 (0)