Github user srowen commented on a diff in the pull request:
https://github.com/apache/spark/pull/653#discussion_r12311753
--- 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 --
Ah right, this snippet won't be pasted into a REPL, true. (I think the
other case I saw is for the REPL, so should have this kind of change.)
But you're saying it can be simplified anyway to that one line? I can
change that but I wonder if the idea is to just show use of setters? if so I
could revert the change... or just leave for consistency with the other
REPL-friendly snippet?
---
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.
---