Hello,

I want to count the number of elements in the DStream, like RDD.count() .
Since there is no such method in DStream, I thought of using DStream.count
and use the accumulator.

How do I do DStream.count() to count the number of elements in a DStream?

How do I create a shared variable in Spark Streaming?

-Soumitra.

Reply via email to