Re: rest on streaming

2015-07-14 Thread Chen Song
Thanks TD, that is very useful. On Tue, Jul 14, 2015 at 10:19 PM, Tathagata Das wrote: > You can do this. > > // global variable to keep track of latest stuff > var latestTime = _ > var latestRDD = _ > > > dstream.foreachRDD((rdd: RDD[..], time: Time) => { > latestTime = time > latestRDD

Re: rest on streaming

2015-07-14 Thread Tathagata Das
You can do this. // global variable to keep track of latest stuff var latestTime = _ var latestRDD = _ dstream.foreachRDD((rdd: RDD[..], time: Time) => { latestTime = time latestRDD = rdd }) Now you can asynchronously access the latest RDD. However if you are going to run jobs on the la