aboutsummaryrefslogtreecommitdiff
path: root/sbin/spark-daemon.sh
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/spark-daemon.sh')
-rwxr-xr-xsbin/spark-daemon.sh4
1 files changed, 1 insertions, 3 deletions
diff --git a/sbin/spark-daemon.sh b/sbin/spark-daemon.sh
index 2be2b3d7c0..323f675b17 100755
--- a/sbin/spark-daemon.sh
+++ b/sbin/spark-daemon.sh
@@ -86,9 +86,7 @@ spark_rotate_log ()
fi
}
-if [ -f "${SPARK_CONF_DIR}/spark-env.sh" ]; then
- . "${SPARK_CONF_DIR}/spark-env.sh"
-fi
+. "$SPARK_PREFIX/bin/load-spark-env.sh"
if [ "$SPARK_IDENT_STRING" = "" ]; then
export SPARK_IDENT_STRING="$USER"