Github user sjbrunst commented on the pull request:

    https://github.com/apache/spark/pull/1717#issuecomment-59079944
  
    @surendramarupudi A DStream is a series of RDDs, so you can't cast a 
DStream to an RDD. Try using the ``DStream.foreachRDD(func)`` to apply ``func`` 
to each RDD in the stream (see 
http://spark.apache.org/docs/latest/streaming-programming-guide.html#output-operations-on-dstreams).
 You should be able to output to MongoDB that way.
    
    Also, that question is not directly related to this pull request, so I 
think questions like that are best directed at the Spark User mailing list 
(http://apache-spark-user-list.1001560.n3.nabble.com/).


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to