Github user pwendell commented on a diff in the pull request:
https://github.com/apache/spark/pull/653#discussion_r12352039
--- Diff: docs/configuration.md ---
@@ -26,10 +26,10 @@ application name), as well as arbitrary key-value pairs
through the `set()` meth
initialize an application as follows:
{% highlight scala %}
-val conf = new SparkConf()
- .setMaster("local")
- .setAppName("My application")
- .set("spark.executor.memory", "1g")
+val conf = new SparkConf().
+ setMaster("local").
--- End diff --
Hey @mengxr we want to allow these properties to be set directly as well...
some applications will use this.
I think it might be good here to show both. First say that they can be set
directly and then explain that they can be set through arguments to
spark-submit if you create a SparkContext with an empty conf.
```
./bin/spark-submit --name "My application" --master local --executor-memory
1g
```
---
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.
---