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/19 05:09:00 UTC

[jira] [Resolved] (SPARK-58202) Skip driver containerPort declaration when the port is 0

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

Chao Sun resolved SPARK-58202.
------------------------------
    Fix Version/s: 4.3.0
                   5.0.0
       Resolution: Fixed

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

> Skip driver containerPort declaration when the port is 0
> --------------------------------------------------------
>
>                 Key: SPARK-58202
>                 URL: https://issues.apache.org/jira/browse/SPARK-58202
>             Project: Spark
>          Issue Type: Improvement
>          Components: Kubernetes
>    Affects Versions: 4.3.0
>            Reporter: Chenyu Zheng
>            Assignee: Chenyu Zheng
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 4.3.0, 5.0.0
>
>
> Setting {{spark.driver.port}} / {{spark.driver.blockManager.port}} / {{spark.ui.port}} / {{spark.connect.grpc.binding.port}} to 0 makes driver Pod creation fail. The error log is as follows:
> {code:java}
> Exception in thread "main" io.fabric8.kubernetes.client.KubernetesClientException: Failure executing: POST at: https://XX.XX.XX.XX:443/api/v1/namespaces/default/pods. Message: Pod "xxx-driver" is invalid: [spec.containers[0].ports[0].containerPort: Required value, spec.containers[0].ports[1].containerPort: Required value ...
> {code}
> BasicExecutorFeatureStep already skips the entry when the port is 0. The driver side should follow the same pattern.
>  



--
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