Github user andrewor14 commented on a diff in the pull request:
https://github.com/apache/spark/pull/4665#discussion_r25035980
--- Diff: docs/configuration.md ---
@@ -115,6 +115,8 @@ of the most common options to set are:
<td>
Amount of memory to use for the driver process, i.e. where
SparkContext is initialized.
(e.g. <code>512m</code>, <code>2g</code>).
+
+ <br /><em>Note:</em> setting this with <code>conf.set(...)</code> only
works in <code>cluster</code> mode (e.g. YARN deployment). For
<code>client</code> driver memory should be configured in the run-time settings
; i.e. --driver-memory 2g or within <code>conf/spark-defaults.conf</code>.
--- End diff --
what does `(e.g. YARN deployment)` mean? I would just rephrase this whole
thing with:
```
<br/>Note: In client mode, this config must not be set through the
<code>SparkConf</code> directly in your application, because the driver JVM has
already started at that point. Instead, please set this through the
<code>--driver-memory</code> command line option or in your default properties
file.
```
---
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]