Error while Executing Scala constructs with Spark 1.5.2 and Scala 2.11.7

前端 未结 1 1945
我在风中等你
我在风中等你 2021-01-25 15:34

I have a simple scala object file with the following content:

import org.apache.spark.SparkContext  
import org.apache.spark.SparkContext._ 
import org.apache.sp         


        
相关标签:
1条回答
  • 2021-01-25 16:06

    As you are using Scala 2.11 in your project. You should use spark core library build for Scala 2.11. Can download spark-core_2.11 from here http://mvnrepository.com/search?q=Spark

    Refer spark-core_2.11 jar in project.

    0 讨论(0)
提交回复
热议问题