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

Spark streaming requires at least two working thread

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 1.1.0
    • 1.1.0
    • DStreams
    • None

    Description

      Spark streaming requires at least two working threads.But example in spark/examples/src/main/scala/org/apache/spark/examples/streaming/NetworkWordCount.scala
      has
      // Create the context with a 1 second batch size
      val sparkConf = new SparkConf().setAppName("NetworkWordCount")
      val ssc = new StreamingContext(sparkConf, Seconds(1))

      which creates only 1 thread.
      It should have atleast 2 threads:
      http://spark.apache.org/docs/latest/streaming-programming-guide.html

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              svar29 varun sharma
              varun sharma varun sharma
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: