GitHub user bbejeck opened a pull request:

    https://github.com/apache/spark/pull/2309

    SPARK-3178  setting SPARK_WORKER_MEMORY to a value without a label (m or g) 
sets the worker memory limit to zero

    Validate the memory is greater than zero when set from the 
SPARK_WORKER_MEMORY environment variable or command line without a g or m 
label.  Added unit tests. If memory is 0 an IllegalStateException is thrown. 
Updated unit tests to mock environment variables by subclassing SparkConf (tip 
provided by Josh Rosen).   Updated WorkerArguments to use SparkConf.getenv 
instead of System.getenv for reading the SPARK_WORKER_MEMORY environment 
variable.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/bbejeck/spark spark-memory-worker

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/2309.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #2309
    
----
commit 51cf91544b0386a2e5f10add5013e181d5f6609c
Author: Bill Bejeck <[email protected]>
Date:   2014-09-07T01:39:26Z

    SPARK-3178 - Validate the memory is greater than zero when set from the 
SPARK_WORKER_MEMORY environment variable or command line without a g or m 
label.  Added unit tests. If memory is 0 an IllegalStateException is thrown. 
Updated unit tests to mock environment variables by subclassing SparkConf (tip 
provided by Josh Rosen).   Updated WorkerArguments to use SparkConf.getenv 
instead of System.getenv for reading the SPARK_WORKER_MEMORY environment 
variable.

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to