Qtr No. 213, New Town Yehlanka Indore 454775
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 Group https://bit.ly/infy_premium_group
We're passionate about offering best placement materials and courses!! A one stop place for Placement Materials. We daily post Offcampus updates and Placement Materials.
Qtr No. 213, New Town Yehlanka Indore 454775
admin@prepflix.in