diff options
author | hyukjinkwon <gurwls223@gmail.com> | 2016-08-12 10:00:58 +0100 |
---|---|---|
committer | Sean Owen <sowen@cloudera.com> | 2016-08-12 10:00:58 +0100 |
commit | f4482225c405b9cfe078deac74e4c28e2dcc97c3 (patch) | |
tree | eacdde1d4a2cab3177e63029a7f532c498a34454 /docs/spark-standalone.md | |
parent | 993923c8f5ca719daf905285738b7fdcaf944d8c (diff) | |
download | spark-f4482225c405b9cfe078deac74e4c28e2dcc97c3.tar.gz spark-f4482225c405b9cfe078deac74e4c28e2dcc97c3.tar.bz2 spark-f4482225c405b9cfe078deac74e4c28e2dcc97c3.zip |
[MINOR][DOC] Fix style in examples across documentation
## What changes were proposed in this pull request?
This PR fixes the documentation as below:
- Python has 4 spaces and Java and Scala has 2 spaces (See https://cwiki.apache.org/confluence/display/SPARK/Spark+Code+Style+Guide).
- Avoid excessive parentheses and curly braces for anonymous functions. (See https://github.com/databricks/scala-style-guide#anonymous)
## How was this patch tested?
N/A
Author: hyukjinkwon <gurwls223@gmail.com>
Closes #14593 from HyukjinKwon/minor-documentation.
Diffstat (limited to 'docs/spark-standalone.md')
-rw-r--r-- | docs/spark-standalone.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/spark-standalone.md b/docs/spark-standalone.md index 5ae63fe4e6..1097f1fabe 100644 --- a/docs/spark-standalone.md +++ b/docs/spark-standalone.md @@ -298,9 +298,9 @@ application at a time. You can cap the number of cores by setting `spark.cores.m {% highlight scala %} val conf = new SparkConf() - .setMaster(...) - .setAppName(...) - .set("spark.cores.max", "10") + .setMaster(...) + .setAppName(...) + .set("spark.cores.max", "10") val sc = new SparkContext(conf) {% endhighlight %} |