IntelliJ Idea 14: cannot resolve symbol spark

后端 未结 6 1772
花落未央
花落未央 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条回答
  •  不知归路
    2021-02-09 14:27

    This worked for me->

    name := "ProjectName"
    version := "0.1"
    scalaVersion := "2.11.11"
    
    libraryDependencies ++= Seq(
      "org.apache.spark" % "spark-core_2.11" % "2.2.0",
      "org.apache.spark" % "spark-sql_2.11" % "2.2.0",
      "org.apache.spark" % "spark-mllib_2.10" % "1.1.0"
    )
    

提交回复
热议问题