libraryDependencies Spark in build.sbt error (IntelliJ)

☆樱花仙子☆ 提交于 2021-02-11 16:50:29

问题


I am trying to learning Scala with Spark. I am following a tutorial but I am having an error, when I try to import the library dependencies of Spark:

libraryDependencies += "org.apache.spark" %% "spark-core" % "2.4.3"

I am getting the following error:

And I have 3 Unkwons artifacts.

What could be the problem here?

My code is so simple, it is just a Hello World.


回答1:


Probably you need to add to your build.sbt:

resolvers += "spark-core" at "https://mvnrepository.com/artifact/org.apache.spark/spark-core"

Please note that this library is supported only for Scala 2.11 and Scala 2.12.



来源:https://stackoverflow.com/questions/65260968/librarydependencies-spark-in-build-sbt-error-intellij

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!