[SPARK-46945][K8S] Add spark.kubernetes.legacy.useReadWriteOnceAccessMode for old K8s clusters#44985
[SPARK-46945][K8S] Add spark.kubernetes.legacy.useReadWriteOnceAccessMode for old K8s clusters#44985dongjoon-hyun wants to merge 1 commit intoapache:masterfrom
spark.kubernetes.legacy.useReadWriteOnceAccessMode for old K8s clusters#44985Conversation
…sMode` for old K8s clusters
|
Hi, @yaooqinn . Could you review this, please? The recent Apache Spark 3.5.1 release discussion in dev mailing list reminds me your error reporting. I added this legacy configuration with different default values.
|
I suppose the "old" means K8s version < 1.22? would be helpful to mention it in the PR description or configuration docs. |
|
Thanks @dongjoon-hyun @pan3793 Merged to master. |
…AccessMode` for old K8s clusters ### What changes were proposed in this pull request? This PR aims to introduce a legacy configuration for K8s PVC access mode to mitigate migrations issues in old K8s clusters. This is a kind of backport of - #44985 ### Why are the changes needed? - The default value of `spark.kubernetes.legacy.useReadWriteOnceAccessMode` is `true` in branch-3.5. - To help the users who cannot upgrade their K8s versions. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Manually. ### Was this patch authored or co-authored using generative AI tooling? No. Closes #44986 from dongjoon-hyun/SPARK-46945-3.5. Authored-by: Dongjoon Hyun <dhyun@apple.com> Signed-off-by: Kent Yao <yao@apache.org>
…AccessMode` for old K8s clusters ### What changes were proposed in this pull request? This PR aims to introduce a legacy configuration for K8s PVC access mode to mitigate migrations issues in old K8s clusters. This is a kind of backport of - #44985 ### Why are the changes needed? - The default value of `spark.kubernetes.legacy.useReadWriteOnceAccessMode` is `true` in branch-3.4. - To help the users who cannot upgrade their K8s versions. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Manually. ### Was this patch authored or co-authored using generative AI tooling? No. Closes #44987 from dongjoon-hyun/SPARK-46945-3.4. Authored-by: Dongjoon Hyun <dhyun@apple.com> Signed-off-by: Kent Yao <yao@apache.org>
|
Hi, @pan3793 . Apache Spark 4.0 only supports K8s 1.26+ already via SPARK-44119
|
|
I believe the user will know the capability at the first Spark 4.0 run if their cluster is not ready for
|
That makes sense, thanks for the explanation. |
…AccessMode` for old K8s clusters This PR aims to introduce a legacy configuration for K8s PVC access mode to mitigate migrations issues in old K8s clusters. This is a kind of backport of - apache#44985 - The default value of `spark.kubernetes.legacy.useReadWriteOnceAccessMode` is `true` in branch-3.4. - To help the users who cannot upgrade their K8s versions. No. Manually. No. Closes apache#44987 from dongjoon-hyun/SPARK-46945-3.4. Authored-by: Dongjoon Hyun <dhyun@apple.com> Signed-off-by: Kent Yao <yao@apache.org>
What changes were proposed in this pull request?
This PR aims to introduce a legacy configuration for K8s PVC access mode to mitigate migrations issues in old K8s clusters.
Why are the changes needed?
spark.kubernetes.legacy.useReadWriteOnceAccessModeisfalsein Apache Spark 4.Does this PR introduce any user-facing change?
No.
How was this patch tested?
Manually.
Was this patch authored or co-authored using generative AI tooling?
No.