Skip to content
Snippets Groups Projects
Commit bc4851ad authored by Bartek Wiśniewski's avatar Bartek Wiśniewski Committed by Reynold Xin
Browse files

[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.
parent 70f846a3
No related branches found
No related tags found
No related merge requests found
......@@ -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.
......
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