[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.
This commit is contained in:
parent
70f846a313
commit
bc4851adeb
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue