Skip to content

Commit 65e04ad

Browse files
committed
update spark-submit help message and add a comment for yarn-client
1 parent 11e5354 commit 65e04ad

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -326,8 +326,7 @@ private[spark] class SparkSubmitArguments(args: Seq[String]) {
326326
| --class CLASS_NAME Your application's main class (for Java / Scala apps).
327327
| --name NAME A name of your application.
328328
| --jars JARS Comma-separated list of local jars to include on the driver
329-
| and executor classpaths. Doesn't work for drivers in
330-
| standalone mode with "cluster" deploy mode.
329+
| and executor classpaths.
331330
| --py-files PY_FILES Comma-separated list of .zip or .egg files to place on the
332331
| PYTHONPATH for Python apps.
333332
| --files FILES Comma-separated list of files to be placed in the working

yarn/common/src/main/scala/org/apache/spark/scheduler/cluster/YarnClientSchedulerBackend.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ private[spark] class YarnClientSchedulerBackend(
5252
val argsArrayBuf = new ArrayBuffer[String]()
5353
argsArrayBuf += (
5454
"--class", "notused",
55-
"--jar", null,
55+
"--jar", null, // The primary jar will be added dynamically in SparkContext.
5656
"--args", hostport,
5757
"--am-class", classOf[ExecutorLauncher].getName
5858
)

0 commit comments

Comments
 (0)