Skip to content
Snippets Groups Projects
Commit 7295dd94 authored by Andrew Or's avatar Andrew Or Committed by Reynold Xin
Browse files

[Docs] Correct example of creating a new SparkConf


The example code on the configuration page currently does not compile.

Author: Andrew Or <andrewor14@gmail.com>

Closes #842 from andrewor14/conf-docs and squashes the following commits:

aabff57 [Andrew Or] Correct example of creating a new SparkConf

(cherry picked from commit 1014668f)
Signed-off-by: default avatarReynold Xin <rxin@apache.org>
parent 364c14af
No related branches found
No related tags found
No related merge requests found
...@@ -23,7 +23,7 @@ cluster (e.g. master URL and application name), as well as arbitrary key-value p ...@@ -23,7 +23,7 @@ cluster (e.g. master URL and application name), as well as arbitrary key-value p
`set()` method. For example, we could initialize an application as follows: `set()` method. For example, we could initialize an application as follows:
{% highlight scala %} {% highlight scala %}
val conf = new SparkConf val conf = new SparkConf()
.setMaster("local") .setMaster("local")
.setAppName("CountingSheep") .setAppName("CountingSheep")
.set("spark.executor.memory", "1g") .set("spark.executor.memory", "1g")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment