From c4ffb7cfbfa49166d99eee8360f7f0843cfb2c8e Mon Sep 17 00:00:00 2001 From: Yikun Jiang Date: Thu, 14 Sep 2023 19:04:50 +0800 Subject: [PATCH] Backport https://github.com/apache/spark/pull/40392 Signed-off-by: Yikun Jiang --- 3.5.0/scala2.12-java11-ubuntu/entrypoint.sh | 1 + entrypoint.sh.template | 1 + 2 files changed, 2 insertions(+) diff --git a/3.5.0/scala2.12-java11-ubuntu/entrypoint.sh b/3.5.0/scala2.12-java11-ubuntu/entrypoint.sh index 2e3d2a8..46dd357 100755 --- a/3.5.0/scala2.12-java11-ubuntu/entrypoint.sh +++ b/3.5.0/scala2.12-java11-ubuntu/entrypoint.sh @@ -90,6 +90,7 @@ case "$1" in CMD=( "$SPARK_HOME/bin/spark-submit" --conf "spark.driver.bindAddress=$SPARK_DRIVER_BIND_ADDRESS" + --conf "spark.executorEnv.SPARK_DRIVER_POD_IP=$SPARK_DRIVER_BIND_ADDRESS" --deploy-mode client "$@" ) diff --git a/entrypoint.sh.template b/entrypoint.sh.template index 2e3d2a8..46dd357 100644 --- a/entrypoint.sh.template +++ b/entrypoint.sh.template @@ -90,6 +90,7 @@ case "$1" in CMD=( "$SPARK_HOME/bin/spark-submit" --conf "spark.driver.bindAddress=$SPARK_DRIVER_BIND_ADDRESS" + --conf "spark.executorEnv.SPARK_DRIVER_POD_IP=$SPARK_DRIVER_BIND_ADDRESS" --deploy-mode client "$@" )