Apache Spark - Key Value RDD

21 / 29

If we need have two RDDs, adjectives = ["good", "bad"] and subjects = ["boy", "girl"] and we want to generate all combinations [("good","boy"), ("good","girl"), ("bad","boy"), ("bad","girl"), ] which transformation would we use?