Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SPARK-36075][K8S] Support for specifiying executor/driver node selector #33283

Closed
wants to merge 1 commit into from

Conversation

Yikun
Copy link
Member

@Yikun Yikun commented Jul 9, 2021

What changes were proposed in this pull request?

Add the support for specifiying executor/driver node selector:

  • spark.kubernetes.driver.node.selector.
  • spark.kubernetes.executor.node.selector.

Why are the changes needed?

Now we can only use "spark.kubernetes.node.selector" to set lable for executor/driver. Sometimes, we need set executor/driver pods to different selector separately.

Does this PR introduce any user-facing change?

Yes

How was this patch tested?

  • KubernetesConfSuite for new added configure
  • BasicDriverFeatureStepSuite to make sure driver pods node selector set properly
  • BasicExecutorFeatureStepSuite to make sure excutor pods node selector set properly

@Yikun
Copy link
Member Author

Yikun commented Jul 9, 2021

cc @holdenk @dongjoon-hyun

@SparkQA
Copy link

SparkQA commented Jul 9, 2021

Test build #140858 has started for PR 33283 at commit 135f6ab.

@SparkQA
Copy link

SparkQA commented Jul 9, 2021

Kubernetes integration test unable to build dist.

exiting with code: 141
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/45369/

@SparkQA
Copy link

SparkQA commented Jul 10, 2021

Test build #140877 has finished for PR 33283 at commit cf9d204.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented Jul 10, 2021

Kubernetes integration test unable to build dist.

exiting with code: 1
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/45388/

Copy link
Member

@dongjoon-hyun dongjoon-hyun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1, LGTM. Thank you, @Yikun .
Sorry for the delay. I was on vacation last week.
Merged to master for Apache Spark 3.3.0.

ejblanco pushed a commit to Telefonica/spark that referenced this pull request Feb 28, 2022
### What changes were proposed in this pull request?

Add the support for specifiying executor/driver node selector:
- spark.kubernetes.driver.node.selector.
- spark.kubernetes.executor.node.selector.

### Why are the changes needed?
Now we can only use "spark.kubernetes.node.selector" to set lable for executor/driver. Sometimes, we need set executor/driver pods to different selector separately.

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

### How was this patch tested?
- KubernetesConfSuite for new added configure
- BasicDriverFeatureStepSuite to make sure driver pods node selector set properly
- BasicExecutorFeatureStepSuite to make sure excutor pods node selector set properly

Closes apache#33283 from Yikun/SPARK-36075.

Authored-by: Yikun Jiang <yikunkero@gmail.com>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants