diff options
author | Neelesh Srinivas Salian <nsalian@cloudera.com> | 2015-12-30 11:14:13 +0000 |
---|---|---|
committer | Sean Owen <sowen@cloudera.com> | 2015-12-30 11:14:13 +0000 |
commit | 932cf44248e067ee7cae6fef79ddf2ab9b1c36d8 (patch) | |
tree | 81e132557d09a57c20acef94de14b344381e8bc0 /core/src/main/scala/org/apache | |
parent | 27af6157f9cceeb9aa74eec54c8898d3e0749ed0 (diff) | |
download | spark-932cf44248e067ee7cae6fef79ddf2ab9b1c36d8.tar.gz spark-932cf44248e067ee7cae6fef79ddf2ab9b1c36d8.tar.bz2 spark-932cf44248e067ee7cae6fef79ddf2ab9b1c36d8.zip |
[SPARK-12263][DOCS] IllegalStateException: Memory can't be 0 for SPARK_WORKER_MEMORY without unit
Updated the Worker Unit IllegalStateException message to indicate no values less than 1MB instead of 0 to help solve this.
Requesting review
Author: Neelesh Srinivas Salian <nsalian@cloudera.com>
Closes #10483 from nssalian/SPARK-12263.
Diffstat (limited to 'core/src/main/scala/org/apache')
-rw-r--r-- | core/src/main/scala/org/apache/spark/deploy/worker/WorkerArguments.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/main/scala/org/apache/spark/deploy/worker/WorkerArguments.scala b/core/src/main/scala/org/apache/spark/deploy/worker/WorkerArguments.scala index 5181142c5f..de3c7cd265 100644 --- a/core/src/main/scala/org/apache/spark/deploy/worker/WorkerArguments.scala +++ b/core/src/main/scala/org/apache/spark/deploy/worker/WorkerArguments.scala @@ -175,7 +175,7 @@ private[worker] class WorkerArguments(args: Array[String], conf: SparkConf) { def checkWorkerMemory(): Unit = { if (memory <= 0) { - val message = "Memory can't be 0, missing a M or G on the end of the memory specification?" + val message = "Memory is below 1MB, or missing a M/G at the end of the memory specification?" throw new IllegalStateException(message) } } |