Re: Shared variable in Spark Streaming

2014-09-05 Thread Tathagata Das
ted after every batch. >>> >>> TD >>> >>> >>> On Thu, Aug 7, 2014 at 10:16 PM, Soumitra Kumar < >>> kumar.soumi...@gmail.com> wrote: >>> >>>> 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. >>>> >>> >>> >> >

Re: Shared variable in Spark Streaming

2014-09-05 Thread Chris Fregly
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. >>> >> >> >

Re: Shared variable in Spark Streaming

2014-08-08 Thread Soumitra Kumar
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. >> > >

Re: Shared variable in Spark Streaming

2014-08-08 Thread Mayur Rustagi
o I do DStream.count() to count the number of elements in a DStream? > > How do I create a shared variable in Spark Streaming? > > -Soumitra. >

Re: Shared variable in Spark Streaming

2014-08-08 Thread Tathagata Das
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. >

Shared variable in Spark Streaming

2014-08-07 Thread Soumitra Kumar
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