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-36059][K8S][FOLLOWUP] Support spark.kubernetes.scheduler.name #35499

Closed
wants to merge 4 commits into from

Conversation

Yikun
Copy link
Member

@Yikun Yikun commented Feb 13, 2022

What changes were proposed in this pull request?

Add spark.kubernetes.scheduler.name to support specify driver and executor scheduler togerther.

Why are the changes needed?

Before this patch, we have to specify two configuration for driver and executor:

spark.kubernetes.executor.scheduler.name='volcano'
spark.kubernetes.driver.scheduler.name='volcano'

After this patch, we can specify executor and driver scheduler name by one configuration

spark.kubernetes.scheduler.name='volcano'

Does this PR introduce any user-facing change?

Yes, a configuration added.

How was this patch tested?

UT

@Yikun
Copy link
Member Author

Yikun commented Feb 13, 2022

cc @dongjoon-hyun this may an improvement to simplify configuration on scheduler.

@dongjoon-hyun dongjoon-hyun changed the title [SPARK-36059][K8S] Support spark.kubernetes.scheduler.name [SPARK-36059][K8S][FOLLOWUP] Support spark.kubernetes.scheduler.name Feb 14, 2022
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.

I agree with your intention.

Please use [FOLLOWUP] when you do the follow-up. And, in this case, please update the document together.

@Yikun
Copy link
Member Author

Yikun commented Feb 14, 2022

@dongjoon-hyun Sure, thanks, will update soon.

@dongjoon-hyun
Copy link
Member

Gentle ping, @Yikun .

@@ -42,7 +42,7 @@ private[spark] abstract class KubernetesConf(val sparkConf: SparkConf) {
def secretEnvNamesToKeyRefs: Map[String, String]
def secretNamesToMountPaths: Map[String, String]
def volumes: Seq[KubernetesVolumeSpec]
def schedulerName: String
def schedulerName: Option[String]
Copy link
Member

Choose a reason for hiding this comment

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

Since schedulerName is added at 3.3.0, it looks like a safe change.

@Yikun Yikun marked this pull request as ready for review February 16, 2022 07:11
@github-actions github-actions bot added the DOCS label Feb 16, 2022
@Yikun
Copy link
Member Author

Yikun commented Feb 16, 2022

@dongjoon-hyun Thanks for review. I update the test and plus doc.

@@ -1332,21 +1332,30 @@ See the [configuration page](configuration.html) for information on Spark config
<td>3.3.0</td>
</tr>
<tr>
<td><code>spark.kubernetes.executor.scheduler.name<code></td>
<td><code>spark.kubernetes.executor.scheduler.name</code></td>
Copy link
Member

Choose a reason for hiding this comment

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

Thanks!

<td>(none)</td>
<td>
Specify the scheduler name for each executor pod.
</td>
<td>3.0.0</td>
</tr>
<tr>
<td><code>spark.kubernetes.driver.scheduler.name<code></td>
<td><code>spark.kubernetes.driver.scheduler.name</code></td>
Copy link
Member

Choose a reason for hiding this comment

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

ditto.

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 and @martin-g .
Merged to master for Apache Spark 3.3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants