13. Key /Value RDD's, and the Average Friends by Age example
KEY /VALUE RDD'S
RDD'S Can Hold Key /Value Pairs
Creating A Key /Value RDD
totalsByAge = rdd.map(x => (x, 1))
Spark Can Do Special Stuff With Key /Value Data
You Can Do SQL-Style Joins On Two Key /Value-RDD's
Mapping Just The Values Of A Key /Value RDD?
Friends By Age Example
Parsing (Mapping) The Input Data
Count Up Sum Of Friends And Number Of Entries Per Age
Compute Averages
Collect And Display The Results
Last updated