Github user srowen commented on a diff in the pull request:
https://github.com/apache/spark/pull/653#discussion_r12346795
--- 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 --
Agree, although on re-reading I think the purpose of this snippet is to
explain how one would invoke Spark programmatically via `SparkConf` (or else
the whole thing should go away). It is something you might want to do in a
Scala program, and might even want to pop into a Scala REPL (i.e. not
`spark-shell`). I suggest leaving it; am I really off-base on that?
---
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.
---