You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Chao Sun (Jira)" <ji...@apache.org> on 2026/08/13 23:33:00 UTC

[jira] [Resolved] (SPARK-58748) Preserve the advertised driver host when the Kubernetes driver bind address is a wildcard

     [ https://issues.apache.org/jira/browse/SPARK-58748?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chao Sun resolved SPARK-58748.
------------------------------
    Resolution: Fixed

Issue resolved by pull request 57977
[https://github.com/apache/spark/pull/57977]

> Preserve the advertised driver host when the Kubernetes driver bind address is a wildcard
> -----------------------------------------------------------------------------------------
>
>                 Key: SPARK-58748
>                 URL: https://issues.apache.org/jira/browse/SPARK-58748
>             Project: Spark
>          Issue Type: Bug
>          Components: Connect, Kubernetes, Spark Core
>    Affects Versions: 4.1.0, 4.2.0, 4.3.0, 5.0.0
>            Reporter: Chao Sun
>            Assignee: Chao Sun
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 4.3.0, 5.0.0
>
>
> Spark Kubernetes client-mode drivers commonly bind RPC sockets to 0.0.0.0 or an IPv6 wildcard while advertising a routable address through spark.driver.host. When spark.kubernetes.executor.useDriverPodIP=true, SparkContext replaces spark.driver.host with spark.driver.bindAddress, and BasicExecutorFeatureStep independently uses that bind address to construct SPARK_DRIVER_URL. This produces executor URLs such as spark://CoarseGrainedScheduler@0.0.0.0:7078, so executors cannot register with the driver.
> The option was introduced in Spark 4.1 and is enabled by default in Spark 4.3 and current master, making client-mode and Spark Connect drivers vulnerable without explicitly enabling the setting.
> Reproduction: launch a Kubernetes client-mode driver with spark.driver.bindAddress=0.0.0.0, spark.driver.host set to a routable driver address, and spark.kubernetes.executor.useDriverPodIP=true. Observe executor connection failures against 0.0.0.0.
> Expected: preserve the advertised spark.driver.host whenever spark.driver.bindAddress is an IPv4 or IPv6 wildcard; continue using and normalizing concrete driver Pod IPs. Both SparkContext and executor driver URL construction need the same wildcard guard.
> Affected versions: 4.1.x and 4.2.x when explicitly enabled; 4.3.0 and 5.0.0 by default. Prioritize a 4.3 backport.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org