Skip to content

Commit d5af9e1

Browse files
WangTaoTheTonicandrewor14
authored andcommitted
[SPARK-3696]Do not override the user-difined conf_dir
https://issues.apache.org/jira/browse/SPARK-3696 We see if SPARK_CONF_DIR is already defined before assignment. Author: WangTaoTheTonic <barneystinson@aliyun.com> Closes #2541 from WangTaoTheTonic/confdir and squashes the following commits: c3f31e0 [WangTaoTheTonic] Do not override the user-difined conf_dir (cherry picked from commit 9d320e2) Signed-off-by: Andrew Or <andrewor14@gmail.com> Conflicts: sbin/spark-config.sh
1 parent 5d991db commit d5af9e1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sbin/spark-config.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ this="$config_bin/$script"
3333

3434
export SPARK_PREFIX=`dirname "$this"`/..
3535
export SPARK_HOME=${SPARK_PREFIX}
36-
export SPARK_CONF_DIR="$SPARK_HOME/conf"
36+
export SPARK_CONF_DIR="${SPARK_CONF_DIR:-"$SPARK_HOME/conf"}"
3737
# Add the PySpark classes to the PYTHONPATH:
3838
export PYTHONPATH=$SPARK_HOME/python:$PYTHONPATH
3939
export PYTHONPATH=$SPARK_HOME/python/lib/py4j-0.8.2.1-src.zip:$PYTHONPATH

0 commit comments

Comments
 (0)