Skip to content
Snippets Groups Projects
Commit 181b130a authored by Tianshuo Deng's avatar Tianshuo Deng Committed by Patrick Wendell
Browse files

[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 <tdeng@twitter.com>

Closes #138 from tsdeng/bugfix_wrong_client_args and squashes the following commits:

304826d [Tianshuo Deng] wrong client arg, should use executor-cores
parent ca4bf8c5
No related branches found
No related tags found
No related merge requests found
...@@ -95,7 +95,7 @@ class ClientArguments(val args: Array[String], val sparkConf: SparkConf) { ...@@ -95,7 +95,7 @@ class ClientArguments(val args: Array[String], val sparkConf: SparkConf) {
executorMemory = value executorMemory = value
args = tail args = tail
case ("--worker-cores" | "--executor-memory") :: IntParam(value) :: tail => case ("--worker-cores" | "--executor-cores") :: IntParam(value) :: tail =>
if (args(0) == "--worker-cores") { if (args(0) == "--worker-cores") {
println("--worker-cores is deprecated. Use --executor-cores instead.") println("--worker-cores is deprecated. Use --executor-cores instead.")
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment