April 2017
Intermediate to advanced
532 pages
12h 39m
English
Like Spark RDDs, DStreams can be cached in memory. The use cases for caching are similar to those for RDDs-if we expect to access the data in a DStream multiple times (perhaps performing multiple types of analysis or aggregation or outputting to multiple external systems), we will benefit from caching the data. Stateful operators, which include window functions and updateStateByKey, do this automatically for efficiency.
Recall that RDDs are immutable datasets and are defined by their input data source and lineage-that is, the set of transformations and actions that are applied to the RDD. Fault tolerance in RDDs works by recreating the RDD (or partition of an RDD) that is lost due to the failure ...
Read now
Unlock full access