spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emre Sevinç (JIRA) <j...@apache.org>
Subject [jira] [Commented] (SPARK-4724) JavaNetworkWordCount.java has a wrong import
Date Wed, 03 Dec 2014 15:19:12 GMT

    [ https://issues.apache.org/jira/browse/SPARK-4724?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14233100#comment-14233100
] 

Emre Sevinç commented on SPARK-4724:
------------------------------------

OK, now I see. What confused me was the word _latest_ in URL of the Javadoc: https://spark.apache.org/docs/latest/api/java/index.html.
I failed to realize that the title of the HTML page indicates **Spark 1.1.1 JavaDoc**, and
that _latest_ referred to the latest release of 1.1.x series, and not the 1.2.x development
branch (master) as of now. 

> 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-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org


Mime
View raw message