foreachRDD returning N RDDs when?

Multi tool use


foreachRDD returning N RDDs when?
There has been some discussion on foreachRDD in Spark Streaming as per a good posting stackoverflow 36421619. None-the-less I feel the answers are not clear enough when reading the prose. So here goes ...
My questions are:
The commonest use case appears to be for persisting to external storage I note. That seems to be the guide for most, output operations. I am somehow missing something.
1 Answer
1
Only with windowed operation, else 1 microbatch = 1 RDD.
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.
Documentation a little confusing.
– thebluephantom
Dec 2 '17 at 10:18