Repository: spark Updated Branches: refs/heads/master 27af6157f -> 932cf4424
[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 <nsal...@cloudera.com> Closes #10483 from nssalian/SPARK-12263. Project: http://git-wip-us.apache.org/repos/asf/spark/repo Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/932cf442 Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/932cf442 Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/932cf442 Branch: refs/heads/master Commit: 932cf44248e067ee7cae6fef79ddf2ab9b1c36d8 Parents: 27af615 Author: Neelesh Srinivas Salian <nsal...@cloudera.com> Authored: Wed Dec 30 11:14:13 2015 +0000 Committer: Sean Owen <so...@cloudera.com> Committed: Wed Dec 30 11:14:13 2015 +0000 ---------------------------------------------------------------------- .../scala/org/apache/spark/deploy/worker/WorkerArguments.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/spark/blob/932cf442/core/src/main/scala/org/apache/spark/deploy/worker/WorkerArguments.scala ---------------------------------------------------------------------- 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 5181142..de3c7cd 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) } } --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@spark.apache.org For additional commands, e-mail: commits-h...@spark.apache.org