Skip to content

Commit 4604018

Browse files
committed
[SPARK-45670][CORE] SparkSubmit does not support --total-executor-cores when deploying on K8s
Remove Kubernetes from the support list of `--total-executor-cores` in SparkSubmit `--total-executor-cores` does not take effect in Spark on K8s, [the comments from original PR](apache#19717 (comment)) also proves that The output of `spark-submit --help` changed ```patch ... - Spark standalone, Mesos and Kubernetes only: + Spark standalone and Mesos only: --total-executor-cores NUM Total cores for all executors. ... ``` Pass GA and review. No Closes apache#43536 from pan3793/tec. Authored-by: Cheng Pan <[email protected]> Signed-off-by: Dongjoon Hyun <[email protected]>
1 parent 1bb4143 commit 4604018

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

core/src/main/scala/org/apache/spark/deploy/SparkSubmit.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,7 @@ private[spark] class SparkSubmit extends Logging {
647647
confKey = EXECUTOR_CORES.key),
648648
OptionAssigner(args.executorMemory, STANDALONE | MESOS | YARN | KUBERNETES, ALL_DEPLOY_MODES,
649649
confKey = EXECUTOR_MEMORY.key),
650-
OptionAssigner(args.totalExecutorCores, STANDALONE | MESOS | KUBERNETES, ALL_DEPLOY_MODES,
650+
OptionAssigner(args.totalExecutorCores, STANDALONE | MESOS, ALL_DEPLOY_MODES,
651651
confKey = CORES_MAX.key),
652652
OptionAssigner(args.files, LOCAL | STANDALONE | MESOS | KUBERNETES, ALL_DEPLOY_MODES,
653653
confKey = FILES.key),

core/src/main/scala/org/apache/spark/deploy/SparkSubmitArguments.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ private[deploy] class SparkSubmitArguments(args: Seq[String], env: Map[String, S
550550
| --kill SUBMISSION_ID If given, kills the driver specified.
551551
| --status SUBMISSION_ID If given, requests the status of the driver specified.
552552
|
553-
| Spark standalone, Mesos and Kubernetes only:
553+
| Spark standalone and Mesos only:
554554
| --total-executor-cores NUM Total cores for all executors.
555555
|
556556
| Spark standalone, YARN and Kubernetes only:

0 commit comments

Comments
 (0)