[ https://issues.apache.org/jira/browse/SPARK-4724?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Emre Sevinç closed SPARK-4724. ------------------------------ > JavaNetworkWordCount.java has a wrong import > -------------------------------------------- > > Key: SPARK-4724 > URL: https://issues.apache.org/jira/browse/SPARK-4724 > Project: Spark > Issue Type: Bug > Components: Examples > Affects Versions: 1.1.0 > Reporter: Emre Sevinç > Priority: Minor > Labels: examples > > JavaNetworkWordCount.java has a wrong import. > [Line > 28|https://github.com/apache/spark/blob/master/examples/src/main/java/org/apache/spark/examples/streaming/JavaNetworkWordCount.java#L28] > in > [spark/examples/src/main/java/org/apache/spark/examples/streaming/JavaNetworkWordCount.java|https://github.com/apache/spark/blob/master/examples/src/main/java/org/apache/spark/examples/streaming/JavaNetworkWordCount.java] > reads as > {code:title=JavaNetworkWordCount.java|borderStyle=dashed|borderColor=#ccc|titleBGColor=#F7D6C1|bgColor=#FFFFCE} > import org.apache.spark.streaming.Durations; > {code} > But according to the > [documentation|https://spark.apache.org/docs/latest/api/java/org/apache/spark/streaming/package-summary.html], > it should be > [Duration|https://spark.apache.org/docs/latest/api/java/org/apache/spark/streaming/Duration.html] > (or > [Seconds|https://spark.apache.org/docs/latest/api/java/org/apache/spark/streaming/Seconds.html]), > not **Durations** . > Also [line > 60|https://github.com/apache/spark/blob/master/examples/src/main/java/org/apache/spark/examples/streaming/JavaNetworkWordCount.java#L60] > should change accordingly because currently it reads as: > {code:title=JavaNetworkWordCount.java|borderStyle=dashed|borderColor=#ccc|titleBGColor=#F7D6C1|bgColor=#FFFFCE} > JavaStreamingContext ssc = new JavaStreamingContext(sparkConf, > Durations.seconds(1)); > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org