[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:
Bartek Wiśniewski 2016-07-27 10:53:22 -07:00 committed by Reynold Xin
parent 70f846a313
commit bc4851adeb

View file

@ -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.