-
- Downloads
SPARK-3178 setting SPARK_WORKER_MEMORY to a value without a label (m or g)...
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. Author: Bill Bejeck <bbejeck@gmail.com> Closes #2309 from bbejeck/spark-memory-worker and squashes the following commits: 51cf915 [Bill Bejeck] 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.
Showing
- core/src/main/scala/org/apache/spark/deploy/worker/WorkerArguments.scala 11 additions, 2 deletions...cala/org/apache/spark/deploy/worker/WorkerArguments.scala
- core/src/test/scala/org/apache/spark/deploy/worker/WorkerArgumentsTest.scala 82 additions, 0 deletions.../org/apache/spark/deploy/worker/WorkerArgumentsTest.scala
Please register or sign in to comment