var data = sc.textFile(“dataset/cityData.txt”)
var data2 = data.reduceByKey(x,y=>x+y)
value reduceByKey is not a member of org.apache.spark.rdd.RDD[String]
What is the solution for this issue ? Any Jars missing while executing the code ?