diff options
author | Tianshuo Deng <tdeng@twitter.com> | 2014-03-13 20:27:36 -0700 |
---|---|---|
committer | Patrick Wendell <pwendell@gmail.com> | 2014-03-13 20:27:36 -0700 |
commit | 181b130a0c2a0752009fdf5602e5d6d87f5b1212 (patch) | |
tree | 44aafbfefaf16941e8902f0fe14869aaf1c63edc /yarn | |
parent | ca4bf8c572c2f70b484830f1db414b5073744ab6 (diff) | |
download | spark-181b130a0c2a0752009fdf5602e5d6d87f5b1212.tar.gz spark-181b130a0c2a0752009fdf5602e5d6d87f5b1212.tar.bz2 spark-181b130a0c2a0752009fdf5602e5d6d87f5b1212.zip |
[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
Diffstat (limited to 'yarn')
-rw-r--r-- | yarn/common/src/main/scala/org/apache/spark/deploy/yarn/ClientArguments.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/yarn/common/src/main/scala/org/apache/spark/deploy/yarn/ClientArguments.scala b/yarn/common/src/main/scala/org/apache/spark/deploy/yarn/ClientArguments.scala index a001060cdb..c565f2dde2 100644 --- a/yarn/common/src/main/scala/org/apache/spark/deploy/yarn/ClientArguments.scala +++ b/yarn/common/src/main/scala/org/apache/spark/deploy/yarn/ClientArguments.scala @@ -95,7 +95,7 @@ class ClientArguments(val args: Array[String], val sparkConf: SparkConf) { executorMemory = value args = tail - case ("--worker-cores" | "--executor-memory") :: IntParam(value) :: tail => + case ("--worker-cores" | "--executor-cores") :: IntParam(value) :: tail => if (args(0) == "--worker-cores") { println("--worker-cores is deprecated. Use --executor-cores instead.") } |