Uh oh!
There was an error while loading. Please reload this page.
[SPARK-37145][K8S] Add KubernetesCustom[Driver/Executor]FeatureConfigStep developer api - #35345
[SPARK-37145][K8S] Add KubernetesCustom[Driver/Executor]FeatureConfigStep developer api#35345Yikun wants to merge 8 commits into
Conversation
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
@attilapiros Thanks for your review, I will address soon. (later) updated. |
551a9a2 to
d05b3d2Compare
attilapiros
left a comment
There was a problem hiding this comment.
A bunch of Nits and a test refactor.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Yikun
commented
Feb 2, 2022
@attilapiros Thanks for your suggestion, it makes doc and test more clear and simple. Addressed. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
dongjoon-hyun
left a comment
There was a problem hiding this comment.
Thank you for making this improvement, @Yikun .
I made a few comments.
Yikun
commented
Feb 2, 2022
@dongjoon-hyun Thanks for your review, addressed. : ) |
dongjoon-hyun
left a comment
There was a problem hiding this comment.
+1, LGTM. Thank you, @Yikun and all.
Merged to master for Apache Spark 3.3.
Yikun
commented
Feb 3, 2022
@dongjoon-hyun@attilapiros Thanks for your help! |
dongjoon-hyun
commented
Feb 3, 2022
Did I miss something from your comments, @attilapiros ? |
attilapiros
commented
Feb 3, 2022
@dongjoon-hyun It is fine, I just planned to do another review round (the last one) and I got surprised it is already in. |
dongjoon-hyun
commented
Feb 3, 2022
You can make comments still and we can handle it as follow-up PRs. Please let us know if you have any concern, @attilapiros . |
…ecutor]FeatureConfigStep` ### What changes were proposed in this pull request? Add note for developers to show how to use `KubernetesDriverCustomFeatureConfigStep` and `KubernetesExecutorCustomFeatureConfigStep` (#35345). ### Why are the changes needed? Give an example to show how to use it. ### Does this PR introduce _any_ user-facing change? No, doc only ### How was this patch tested? ci passed Closes#35496 from Yikun/SPARK-37145-followup. Authored-by: Yikun Jiang <yikunkero@gmail.com> Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
…Step` traits to `Stable` ### What changes were proposed in this pull request? This PR aims to promote the following traits to `Stable` from Apache Spark 4.2.0: - `KubernetesFeatureConfigStep` - `KubernetesDriverCustomFeatureConfigStep` - `KubernetesExecutorCustomFeatureConfigStep` ### Why are the changes needed? Since Apache Spark 3.3.0, the `Kubernetes*FeatureConfigStep` traits have been serving stably without any modifications for 4 years. We had better promote them to `Stable`. - #35345 ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Pass the CIs. ### Was this patch authored or co-authored using generative AI tooling? Generated-by: `Gemini 3.1 Pro (High)` on `Antigravity` Closes#54439 from dongjoon-hyun/SPARK-55649. Authored-by: Dongjoon Hyun <dongjoon@apache.org> Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
What changes were proposed in this pull request?
This patch adds the support for extending user feature steps with configuration by adding 2 developer api:
KubernetesDriverCustomFeatureConfigStep: to help user extend custom feature step in executor sideKubernetesExecutorCustomFeatureConfigStep: to help user extend custom feature step in driver sideBefore this patch user can only add feature step like:
class TestStep extends KubernetesFeatureConfigStep: without any kubernetes confAfter this patch user can add feature step with configuration like:
class TestStepWithDriverConf extends KubernetesDriverCustomFeatureConfigStep: only driverclass TestStepWithExecConf extends KubernetesExecutorCustomFeatureConfigStep: only executorclass TestStepWithK8SConf extends KubernetesDriverCustomFeatureConfigStep with KubernetesExecutorCustomFeatureConfigStep: both driver and executorWhy are the changes needed?
In #30206 , a developer API for custom feature steps has been added, but it didn't support initialize user feature step with kubernetes conf (like
KubernetesConf/KubernetesDriverConf/KubernetesExecutorConf).In most of scenarios, users want to make corresponding changes in their feature steps according to the configuration. Such as, the customized scheduler scenario, user wants to configure pod according to passed job configuration.
Does this PR introduce any user-facing change?
Improve the developer API for for custom feature steps.
How was this patch tested?
build/sbt -Pkubernetes -Pkubernetes-integration-tests -Dtest.exclude.tags=minikube,r "kubernetes-integration-tests/testCloses: #34924