I am trying to create a Row[RDD]
val RowRDD =sc.textFile("InputFile.csv").map(x=>x.split(" ")).map(p=>Row(p(1),p(2)))
InputFile.csv is
spark 5 1
hadoop 7 1
flink 10 1
However,as I am running my application,the error says
java.lang.ArrayIndexOutOfBoundsException: 1
It is obvious that the 'InputFile.csv' has 3 rows,why is there an error?
