Skip to content

[SPARK-57351][K8S][CORE] Enable spark.kubernetes.executor.useDriverPodIP by default#56412

Closed
dongjoon-hyun wants to merge 1 commit into
apache:masterfrom
dongjoon-hyun:SPARK-57351
Closed

[SPARK-57351][K8S][CORE] Enable spark.kubernetes.executor.useDriverPodIP by default#56412
dongjoon-hyun wants to merge 1 commit into
apache:masterfrom
dongjoon-hyun:SPARK-57351

Conversation

@dongjoon-hyun

@dongjoon-hyun dongjoon-hyun commented Jun 9, 2026

Copy link
Copy Markdown
Member

What changes were proposed in this pull request?

This PR sets the default value of spark.kubernetes.executor.useDriverPodIP to true at Apache Spark 4.3.0.

Why are the changes needed?

Introduced in SPARK-53944 (4.1.0), this option lets executor pods connect to the driver pod IP directly instead of the driver's Kubernetes Service, bypassing the known K8s DNS issue. Since a Spark driver pod is not restarted during an application, its IP is stable, making this a safe default that avoids DNS lookups.

Does this PR introduce any user-facing change?

Yes. By default, executor pods now connect to the driver via the driver pod IP instead of the driver Service DNS name. To restore the legacy behavior, set spark.kubernetes.executor.useDriverPodIP to false.

How was this patch tested?

Pass the CIs.

Was this patch authored or co-authored using generative AI tooling?

Generated-by: Claude Code (Opus 4.8)

@dongjoon-hyun

Copy link
Copy Markdown
Member Author

Could you review this PR too, @viirya ?

@dongjoon-hyun dongjoon-hyun changed the title [SPARK-57351] Enable spark.kubernetes.executor.useDriverPodIP by default [SPARK-57351][K8S] Enable spark.kubernetes.executor.useDriverPodIP by default Jun 9, 2026
@dongjoon-hyun dongjoon-hyun changed the title [SPARK-57351][K8S] Enable spark.kubernetes.executor.useDriverPodIP by default [SPARK-57351][K8S][CORE] Enable spark.kubernetes.executor.useDriverPodIP by default Jun 9, 2026
@dongjoon-hyun

Copy link
Copy Markdown
Member Author

K8s integration tests passed.

Screenshot 2026-06-09 at 13 12 06

@dongjoon-hyun

Copy link
Copy Markdown
Member Author

Could you review this PR too, @sarutak ?

@dongjoon-hyun

Copy link
Copy Markdown
Member Author

Thank you so much, @sarutak and @viirya . Merged to master/4.x for Apache Spark 4.3.0.

dongjoon-hyun added a commit that referenced this pull request Jun 9, 2026
…odIP` by default

### What changes were proposed in this pull request?

This PR sets the default value of `spark.kubernetes.executor.useDriverPodIP` to `true` at Apache Spark 4.3.0.

### Why are the changes needed?

Introduced in SPARK-53944 (4.1.0), this option lets executor pods connect to the driver pod IP directly instead of the driver's Kubernetes `Service`, bypassing the known K8s DNS issue. Since a Spark driver pod is not restarted during an application, its IP is stable, making this a safe default that avoids DNS lookups.
- #52650

### Does this PR introduce _any_ user-facing change?

Yes. By default, executor pods now connect to the driver via the driver pod IP instead of the driver `Service` DNS name. To restore the legacy behavior, set `spark.kubernetes.executor.useDriverPodIP` to `false`.

### How was this patch tested?

Pass the CIs.

### Was this patch authored or co-authored using generative AI tooling?

Generated-by: Claude Code (Opus 4.8)

Closes #56412 from dongjoon-hyun/SPARK-57351.

Authored-by: Dongjoon Hyun <dongjoon@apache.org>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
(cherry picked from commit 2bb8b20)
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
@dongjoon-hyun dongjoon-hyun deleted the SPARK-57351 branch June 9, 2026 21:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants