IntelliJ Idea 14: cannot resolve symbol spark

后端 未结 6 1769
花落未央
花落未央 2021-02-09 13:55

I made a dependency of Spark which worked in my first project. But when I try to make a new project with Spark, my SBT does not import the external jars of org.apache.spark. The

6条回答
  •  闹比i
    闹比i (楼主)
    2021-02-09 14:44

    Your library dependecy conflicts with with the scala version you're using, you need to use 2.11 for it to work. The correct dependency would be:

    scalaVersion := "2.11.7"
    libraryDependencies += "org.apache.spark" % "spark-core_2.11" % "1.4.1"
    

    note that you need to change spark_parent to spark_core

提交回复
热议问题