Something like
Stream.foreachRdd(rdd=>
rdd.collect.foreach(print accum))
Should answer your question. You get things printed in Each batch interval
Ali Gouta
Le 25 déc. 2015 04:22, "Roberto Coluccio" a
écrit :
> Hello,
>
> I have a batch and a streaming driver
Hello,
I have a batch and a streaming driver using same functions (Scala). I use
accumulators (passed to functions constructors) to count stuff.
In the batch driver, doing so in the right point of the pipeline, I'm able
to retrieve the accumulator value and print it as log4j log.
In the