Skip to content

Commit 2c2bcc5

Browse files
committed
fix wrong usage info
1 parent 497ec2c commit 2c2bcc5

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

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

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -481,13 +481,14 @@ private[deploy] class SparkSubmitArguments(args: Seq[String], env: Map[String, S
481481
|
482482
| Spark standalone and Mesos only:
483483
| --total-executor-cores NUM Total cores for all executors.
484-
|
484+
|
485485
| Spark standalone and YARN only:
486-
| --executor-cores NUM Number of cores to use on each executor. In standalone mode,
487-
| the executor will use all available cores on the worker if
488-
| this is not specified. (Default: 1 in YARN mode, all
489-
| available cores in standalone mode).
490-
|
486+
| --executor-cores NUM Number of cores to use on each executor. Default:
487+
| 1 in YARN mode; in standalone mode, all available cores
488+
| (non-spreadApp mode) or ranging from 1 to
489+
| total-executor-cores / availableNumOfWorkers at the moment
490+
| of scheduling.
491+
|
491492
| YARN-only:
492493
| --driver-cores NUM Number of cores used by the driver, only in cluster mode
493494
| (Default: 1).

0 commit comments

Comments
 (0)