Skip to content

Commit 181b130

Browse files
tsdengpwendell
authored andcommitted
[bugfix] wrong client arg, should use executor-cores
client arg is wrong, it should be executor-cores. it causes executor fail to start when executor-cores is specified Author: Tianshuo Deng <[email protected]> Closes #138 from tsdeng/bugfix_wrong_client_args and squashes the following commits: 304826d [Tianshuo Deng] wrong client arg, should use executor-cores
1 parent ca4bf8c commit 181b130

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)