Github user witgo commented on a diff in the pull request:
https://github.com/apache/spark/pull/646#discussion_r12507619
--- Diff: conf/spark-env.sh.template ---
@@ -38,6 +38,7 @@
# - SPARK_WORKER_INSTANCES, to set the number of worker processes per node
# - SPARK_WORKER_DIR, to set the working directory of worker processes
# - SPARK_WORKER_OPTS, to set config properties only for the worker (e.g.
"-Dx=y")
+# - SPARK_DRIVER_MEMORY, Memory for driver (e.g. 1000M, 2G) (Default: 512
Mb)
--- End diff --
Yes,it work for me.
`./bin/spark-shell --driver-memory 2g` =>
```
/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java
-cp
::/Users/witgo/work/code/java/spark/dist/conf:/Users/witgo/work/code/java/spark/dist/lib/spark-assembly-1.0.0-SNAPSHOT-hadoop0.23.9.jar
-Djava.library.path= -Xms2g -Xmx2g org.apache.spark.deploy.SparkSubmit
spark-internal --driver-memory 2g --class org.apache.spark.repl.Main
```
But in ` --driver-memory 2g --class org.apache.spark.repl.Main ` ,
`--driver-memory 2g` is unnecessary
---
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.
---