What is the output of the given code snipet:
val RDD1 = sc.parallelize(Array(1,2))
val RDD2 = sc.parallelize (Array(2,3))
val product=RDD1.cartesian(RDD2)
val RDD3 = sc.parallelize(Seq((1,2),(2,3),(3,4)))
product.join(RDD3).collect
Type mismatch error. Since integer RDD is combined with pairedRDD in the join
Syntax error since it should be collect(), not collect
Array(((1,(2,2)), (1,(3,2)), (2,(2,3)), (2,(3,3))))
Array((1,(2,2,3)),(2,(2,3,3)),(3,(0,0,4)))
To get all Infosys Certified Spark Professional Exam questions Join Telegram Group https://rebrand.ly/lex-telegram-236dee