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-40065][K8S] Mount ConfigMap on executors with non-default profile as well #37504

Closed
wants to merge 1 commit into from

Conversation

nsuke
Copy link
Member

@nsuke nsuke commented Aug 13, 2022

What changes were proposed in this pull request?

This fixes a bug where ConfigMap is not mounted on executors if they are under a non-default resource profile.

Why are the changes needed?

When spark.kubernetes.executor.disableConfigMap is false, expected behavior is that the ConfigMap is mounted regardless of executor's resource profile. However, it is not mounted if the resource profile is non-default.

Does this PR introduce any user-facing change?

Executors with non-default resource profile will have the ConfigMap mounted that was missing before if spark.kubernetes.executor.disableConfigMap is false or default. If certain users need to keep that behavior for some reason, they would need to explicitly set spark.kubernetes.executor.disableConfigMap to true.

How was this patch tested?

A new test case is added just below the existing ConfigMap test case.

@AmplabJenkins
Copy link

Can one of the admins verify this patch?

@nsuke
Copy link
Member Author

nsuke commented Aug 15, 2022

@dongjoon-hyun @ScrapCodes could you review this? This PR is a tiny fix for the executor ConfigMap mount.

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 for pinging me, @nsuke .

dongjoon-hyun pushed a commit that referenced this pull request Aug 19, 2022
…ile as well

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

This fixes a bug where ConfigMap is not mounted on executors if they are under a non-default resource profile.

### Why are the changes needed?

When `spark.kubernetes.executor.disableConfigMap` is `false`, expected behavior is that the ConfigMap is mounted regardless of executor's resource profile. However, it is not mounted if the resource profile is non-default.

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

Executors with non-default resource profile will have the ConfigMap mounted that was missing before if `spark.kubernetes.executor.disableConfigMap` is `false` or default. If certain users need to keep that behavior for some reason, they would need to explicitly set `spark.kubernetes.executor.disableConfigMap` to `true`.

### How was this patch tested?

A new test case is added just below the existing ConfigMap test case.

Closes #37504 from nsuke/SPARK-40065.

Authored-by: Aki Sukegawa <nsuke@apache.org>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
(cherry picked from commit 41ca629)
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
dongjoon-hyun pushed a commit that referenced this pull request Aug 19, 2022
…ile as well

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

This fixes a bug where ConfigMap is not mounted on executors if they are under a non-default resource profile.

### Why are the changes needed?

When `spark.kubernetes.executor.disableConfigMap` is `false`, expected behavior is that the ConfigMap is mounted regardless of executor's resource profile. However, it is not mounted if the resource profile is non-default.

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

Executors with non-default resource profile will have the ConfigMap mounted that was missing before if `spark.kubernetes.executor.disableConfigMap` is `false` or default. If certain users need to keep that behavior for some reason, they would need to explicitly set `spark.kubernetes.executor.disableConfigMap` to `true`.

### How was this patch tested?

A new test case is added just below the existing ConfigMap test case.

Closes #37504 from nsuke/SPARK-40065.

Authored-by: Aki Sukegawa <nsuke@apache.org>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
(cherry picked from commit 41ca629)
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
@dongjoon-hyun
Copy link
Member

Merged to master/3.3/3.2.

@dongjoon-hyun
Copy link
Member

Welcome to the Apache Spark community, @nsuke .
I added you to the Apache Spark contributor group and assigned SPARK-40065 to you.

@nsuke
Copy link
Member Author

nsuke commented Aug 20, 2022

thank you!

@nsuke nsuke deleted the SPARK-40065 branch August 20, 2022 01:30
sunchao pushed a commit to sunchao/spark that referenced this pull request Jun 2, 2023
…ile as well

This fixes a bug where ConfigMap is not mounted on executors if they are under a non-default resource profile.

When `spark.kubernetes.executor.disableConfigMap` is `false`, expected behavior is that the ConfigMap is mounted regardless of executor's resource profile. However, it is not mounted if the resource profile is non-default.

Executors with non-default resource profile will have the ConfigMap mounted that was missing before if `spark.kubernetes.executor.disableConfigMap` is `false` or default. If certain users need to keep that behavior for some reason, they would need to explicitly set `spark.kubernetes.executor.disableConfigMap` to `true`.

A new test case is added just below the existing ConfigMap test case.

Closes apache#37504 from nsuke/SPARK-40065.

Authored-by: Aki Sukegawa <nsuke@apache.org>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
(cherry picked from commit 41ca629)
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