Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-4724

JavaNetworkWordCount.java has a wrong import

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Not A Problem
    • Affects Version/s: 1.1.0
    • Fix Version/s: None
    • Component/s: Examples
    • Labels:

      Description

      JavaNetworkWordCount.java has a wrong import.

      Line 28 in spark/examples/src/main/java/org/apache/spark/examples/streaming/JavaNetworkWordCount.java reads as

      JavaNetworkWordCount.java
      import org.apache.spark.streaming.Durations;
      

      But according to the documentation, it should be Duration (or Seconds), not *Durations* .

      Also line 60 should change accordingly because currently it reads as:

      JavaNetworkWordCount.java
      JavaStreamingContext ssc = new JavaStreamingContext(sparkConf, Durations.seconds(1));
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              emres Emre Sevinç
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: