This is an automated email from the ASF dual-hosted git repository.
yufei pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/polaris.git
The following commit(s) were added to refs/heads/main by this push:
new 2f664a33 Avoid Spark driver IP binding failure due to VPN setting
(#866)
2f664a33 is described below
commit 2f664a33a2389a0ce01e63f31c61a31ad39556f1
Author: Yufei Gu <[email protected]>
AuthorDate: Tue Jan 28 08:33:32 2025 -0800
Avoid Spark driver IP binding failure due to VPN setting (#866)
---
regtests/run.sh | 1 +
regtests/run_spark_sql.sh | 1 +
2 files changed, 2 insertions(+)
diff --git a/regtests/run.sh b/regtests/run.sh
index bd614150..2a9eb4aa 100755
--- a/regtests/run.sh
+++ b/regtests/run.sh
@@ -26,6 +26,7 @@ if [ -z "${SPARK_HOME}" ]; then
export SPARK_HOME=$(realpath ~/${SPARK_DISTRIBUTION})
fi
export
PYTHONPATH="${SPARK_HOME}/python/:${SPARK_HOME}/python/lib/py4j-0.10.9.7-src.zip:$PYTHONPATH"
+export SPARK_LOCAL_HOSTNAME=localhost # avoid VPN messing up driver local IP
address binding
FMT_RED='\033[0;31m'
FMT_GREEN='\033[0;32m'
diff --git a/regtests/run_spark_sql.sh b/regtests/run_spark_sql.sh
index 699f9219..7ba7a325 100755
--- a/regtests/run_spark_sql.sh
+++ b/regtests/run_spark_sql.sh
@@ -48,6 +48,7 @@ cd ${REGTEST_HOME}
export SPARK_VERSION=spark-3.5.3
export SPARK_DISTRIBUTION=${SPARK_VERSION}-bin-hadoop3
+export SPARK_LOCAL_HOSTNAME=localhost # avoid VPN messing up driver local IP
address binding
./setup.sh