December 2016
Beginner to intermediate
392 pages
8h 13m
English
This recipe shows how to use accumulators and broadcast variables. Accumulators are used to aggregate values from worker nodes back to the driver program. One of the most common uses of accumulators is to count events that occur during job execution for debugging purposes. The other type of shared variable is the broadcast variable, which allows the program to efficiently send a large, read-only value to all the worker nodes for use in one or more Spark operations. Such variables are used in cases where the application needs to send a large, read-only lookup table to all the nodes.
To step through this recipe, you will need a running Spark cluster either in pseudo distributed mode or in ...
Read now
Unlock full access