reduceByKey method not being found in Scala Spark

后端 未结 3 1483
抹茶落季
抹茶落季 2020-12-18 18:34

Attempting to run http://spark.apache.org/docs/latest/quick-start.html#a-standalone-app-in-scala from source.

This line:



        
3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-18 19:00

    You should import the implicit conversions from SparkContext:

    import org.apache.spark.SparkContext._
    

    They use the 'pimp up my library' pattern to add methods to RDD's of specific types. If curious, see SparkContext:1296

提交回复
热议问题