diff options
author | Bartek Wiśniewski <wedi@Ava.local> | 2016-07-27 10:53:22 -0700 |
---|---|---|
committer | Reynold Xin <rxin@databricks.com> | 2016-07-27 10:53:22 -0700 |
commit | bc4851adeb386edc5bef47027a12ca44eda82b09 (patch) | |
tree | 8205a920c937ffce6d74730a52e5c96c26a621c7 /docs/streaming-programming-guide.md | |
parent | 70f846a313061e4db6174e0dc6c12c8c806ccf78 (diff) | |
download | spark-bc4851adeb386edc5bef47027a12ca44eda82b09.tar.gz spark-bc4851adeb386edc5bef47027a12ca44eda82b09.tar.bz2 spark-bc4851adeb386edc5bef47027a12ca44eda82b09.zip |
[MINOR][DOC] missing keyword new
## What changes were proposed in this pull request?
added missing keyword for java example
## How was this patch tested?
wasn't
Author: Bartek Wiśniewski <wedi@Ava.local>
Closes #14381 from wedi-dev/quickfix/missing_keyword.
Diffstat (limited to 'docs/streaming-programming-guide.md')
-rw-r--r-- | docs/streaming-programming-guide.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/streaming-programming-guide.md b/docs/streaming-programming-guide.md index de82a064d1..e80f1c94ff 100644 --- a/docs/streaming-programming-guide.md +++ b/docs/streaming-programming-guide.md @@ -477,7 +477,7 @@ import org.apache.spark.*; import org.apache.spark.streaming.api.java.*; SparkConf conf = new SparkConf().setAppName(appName).setMaster(master); -JavaStreamingContext ssc = new JavaStreamingContext(conf, Duration(1000)); +JavaStreamingContext ssc = new JavaStreamingContext(conf, new Duration(1000)); {% endhighlight %} The `appName` parameter is a name for your application to show on the cluster UI. |