Created
September 10, 2019 14:54
-
-
Save dgadiraju/0ee32a4b3732e14a23d638b4c08182cf to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val rdd1 = sc.parallelize(List(1, 2, 3, 4, 5)) | |
val rdd2 = sc.parallelize(List(2, 3, 4, 5, 6)) | |
rdd1.cartesian(rdd2).take(10).foreach(println) | |
rdd1.cartesian(rdd2).count |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment