diff options
author | Sean Owen <sowen@cloudera.com> | 2014-11-27 09:03:17 -0800 |
---|---|---|
committer | Aaron Davidson <aaron@databricks.com> | 2014-11-27 09:03:17 -0800 |
commit | 5d7fe178b303918faa0893cd36963158b420309f (patch) | |
tree | b3f3dbd8a97d46854cce75d485a5b332f7c5762b /docs | |
parent | c86e9bc4fdd103111280a37144a518479bb9cf0e (diff) | |
download | spark-5d7fe178b303918faa0893cd36963158b420309f.tar.gz spark-5d7fe178b303918faa0893cd36963158b420309f.tar.bz2 spark-5d7fe178b303918faa0893cd36963158b420309f.zip |
SPARK-4170 [CORE] Closure problems when running Scala app that "extends App"
Warn against subclassing scala.App, and remove one instance of this in examples
Author: Sean Owen <sowen@cloudera.com>
Closes #3497 from srowen/SPARK-4170 and squashes the following commits:
4a6131f [Sean Owen] Restore multiline string formatting
a8ca895 [Sean Owen] Warn against subclassing scala.App, and remove one instance of this in examples
Diffstat (limited to 'docs')
-rw-r--r-- | docs/quick-start.md | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/quick-start.md b/docs/quick-start.md index 6236de0e1f..bf643bb70e 100644 --- a/docs/quick-start.md +++ b/docs/quick-start.md @@ -244,6 +244,9 @@ object SimpleApp { } {% endhighlight %} +Note that applications should define a `main()` method instead of extending `scala.App`. +Subclasses of `scala.App` may not work correctly. + This program just counts the number of lines containing 'a' and the number containing 'b' in the Spark README. Note that you'll need to replace YOUR_SPARK_HOME with the location where Spark is installed. Unlike the earlier examples with the Spark shell, which initializes its own SparkContext, |