May 2017
Intermediate to advanced
294 pages
7h 33m
English
Spark Streaming has a context wrapper called StreamingContext, which wraps around SparkContext and is the entry point to the Spark Streaming functionality. Streaming data, by definition, is continuous and needs to be time-sliced into the process. This slice of time is called a batch interval, which is specified when StreamingContext is created. There is one-to-one mapping of an RDD and batch; that is, each batch results in one RDD. As you can see in the following image, Spark Streaming takes continuous data, breaks it into batches, and feeds it to Spark:

Batch interval is important to optimize your streaming application. ...
Read now
Unlock full access