Skip to content

Commit 2f664a3

Browse files
authored
Avoid Spark driver IP binding failure due to VPN setting (#866)
1 parent 5c38780 commit 2f664a3

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

regtests/run.sh

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ if [ -z "${SPARK_HOME}" ]; then
2626
export SPARK_HOME=$(realpath ~/${SPARK_DISTRIBUTION})
2727
fi
2828
export PYTHONPATH="${SPARK_HOME}/python/:${SPARK_HOME}/python/lib/py4j-0.10.9.7-src.zip:$PYTHONPATH"
29+
export SPARK_LOCAL_HOSTNAME=localhost # avoid VPN messing up driver local IP address binding
2930

3031
FMT_RED='\033[0;31m'
3132
FMT_GREEN='\033[0;32m'

regtests/run_spark_sql.sh

+1
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ cd ${REGTEST_HOME}
4848

4949
export SPARK_VERSION=spark-3.5.3
5050
export SPARK_DISTRIBUTION=${SPARK_VERSION}-bin-hadoop3
51+
export SPARK_LOCAL_HOSTNAME=localhost # avoid VPN messing up driver local IP address binding
5152

5253
./setup.sh
5354

0 commit comments

Comments
 (0)