拼写错误: error: value reduceBykey is not a member of org.apache.spark.rdd.RDD[(String, Int)]~2021-09-07
#今天写了一行代码,感觉很简单啊,怎么报错呢,后来一看是一个超级低级错误, 大小写搞错了,reduceByKey写成了reduceBykey,所以Spark的算子大小写一定不要搞错,有可能会报上面的错误1.问题报错:sc.textFile("input/word.txt").flatMap(_.split(" ")).map((_,1)).reduceBykey(_+_).collect<console>:25: error: value reduceBykey is not a mem