GitHub user andrewor14 opened a pull request:
https://github.com/apache/spark/pull/2500
[SPARK-3653] Respect SPARK_*_MEMORY for cluster mode
`SPARK_DRIVER_MEMORY` was only used to start the `SparkSubmit` JVM, which
becomes the driver only in client mode but not cluster mode. In cluster mode,
this property is simply not propagated to the worker nodes.
`SPARK_EXECUTOR_MEMORY` is picked up from `SparkContext`, but in cluster
mode the driver runs on one of the worker machines, where this environment
variable may not be set.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/andrewor14/spark memory-env-vars
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/2500.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 #2500
----
commit 6217b38e5a71e4ef98b82a2968b8da7df5df94a1
Author: Andrew Or <[email protected]>
Date: 2014-09-23T01:06:23Z
Respect SPARK_*_MEMORY for cluster mode
----
---
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]