Create a TestableStreamingContext using an existing SparkContext.
Create a TestableStreamingContext using an existing SparkContext.
existing SparkContext
the time interval at which streaming data will be divided into batches
(Since version 1.3.0) Use awaitTerminationOrTimeout(Long) instead
(Since version 1.0.0) Use receiverStream
Extend the StreamingContext so we can be a little evil and poke at its internals.