Problem Scenario 53 : You have been given below code snippet.
val a = sc.parallelize(1 to 10, 3)
operation1
b.collect
Output 1
Array[lnt] = Array(2, 4, 6, 8,10)
operation2
Output 2
Array[lnt] = Array(1,2, 4)
Write a correct code snippet for operation1 and operation2 which will produce desired output, shown above.
Currently there are no comments in this discussion, be the first to comment!