Skip to content

Commit 304826d

Browse files
committed
wrong client arg, should use executor-cores
1 parent ca4bf8c commit 304826d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

yarn/common/src/main/scala/org/apache/spark/deploy/yarn/ClientArguments.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ class ClientArguments(val args: Array[String], val sparkConf: SparkConf) {
9595
executorMemory = value
9696
args = tail
9797

98-
case ("--worker-cores" | "--executor-memory") :: IntParam(value) :: tail =>
98+
case ("--worker-cores" | "--executor-cores") :: IntParam(value) :: tail =>
9999
if (args(0) == "--worker-cores") {
100100
println("--worker-cores is deprecated. Use --executor-cores instead.")
101101
}

0 commit comments

Comments
 (0)