Intellij IDEA 开发 spark 配置问题

it2022-05-05  190

scalaVersion 和 libraryDependencies 里面 spark 版本必须是一一对应的。 2.4.3 在两个版本中都能找到,2.11 及 2.12

sbt 的源也需要改为国内的源:

[repositories] local aliyun: http://maven.aliyun.com/nexus/content/groups/public jcenter: http://jcenter.bintray.com typesafe: http://repo.typesafe.com/typesafe/ivy-releases/, [organization]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/[artifact](-[classifier]).[ext], bootOnly

推荐到 http://repo.jfrog.org/artifactory/libs-release-bintray/ 浏览一下目录结构,按照目录中的版本去设置即可。


最新回复(0)