existSparkIn application development, which of the following codes can correctly count words?
rval counts = textFile.map(line => line.split("")).map(word =>(word,
1)).reduceByKey(+)
val counts = textFile.flatMap(line => line.split(")).map(word =>(word,
vrval counts = textFie.map(line => line.split(")).map(word =>(word,
1)).groupByKey( )
vrval counts = textFile.flatMap(line => line.split("")).map(word =>(word,
Submit