当我在Scala程序中使用以下import语句时,出现错误。error screen 我在添加libraryDependencies时犯了什么错误。对于graphx.lib,是否有任何特定的库依赖项要添加。
import org.apache.spark.graphx.lib.ShortestPaths
答案 0 :(得分:0)
尝试:
val sparkVersion = "2.2.0"
libraryDependencies in ThisBuild ++= Seq(
"org.apache.spark" %% "spark-graphx" % sparkVersion,
"org.apache.spark" %% "spark-sql" % sparkVersion
)