RDDs support many of the operations of mathematical sets, such as union and intersection, even when the RDDs themselves are not properly sets. Four operations are shown in Figure 3-4. It’s important to note that all of these operations require that the RDDs being operated on are of the same type.
RDD2 contains money instead of monkey
Share this highlighthttp://www.safaribooksonline.com/a/learning-spark/312925/