GitHub user svar29 opened a pull request:

    https://github.com/apache/spark/pull/3141

    SPARK-4276 fix for two working thread

    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

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/svar29/spark streaming-multiple-threads

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/3141.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #3141
    
----
commit 700dfb4957dae32625cf6af2da5482775677c049
Author: Varun Sharma <[email protected]>
Date:   2014-11-06T17:43:39Z

    SPARK-4276 fix for two working thread

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to