Hi everyone, I’m very beginner in spark-scala, so please bear with me, I have progressed a bit since I posted my last question, but I am stuck again,
val dataLines = sc.textFile("Data/clientjobs.csv")
val data = dataLines.map(.split(";"))
val values = data.map(array => (array(1))
I have the code above and an array of array like this
val data = Array[Array[String]] = Array(Array(“c1”,20)
,Array(“c2”,102)
,Array(“c3”,50)
,Array(“c4”,80)
,Array(“c5”,140)
,Array(“c6”,2036), Array(“c7”,568))
I want an output where instead of array of array I just get a normal array with the integer values
like this Array(20, 102, 50, 80, 140, 2036, 568)
I have mapped the array but it doesn’t show me in the terminal
It shows - MapPartitionsRDD[3] at map at code1.scala:14