scala – intellij spark project – sbt unable to resolve dependencies

بدون دیدگاه

I’m trying to build and run a simple Scala Spark project in intellij. I have added org.apache.spark:spark-sql_2.11:2.0.0 in global libraries and my build.sbt looks like below. I still get an error says unknown artifact. unable to resolve or indexed under spark-sql. When tried to build the project the error was Error:(19, 26) not found: type sqlContext, val sqlContext = new sqlContext(sc)

I have no idea what the problem could be. Could you please help? Many thanks.

My build.sbt:

name := "test"

version := "1.0"

scalaVersion := "2.11.8"

libraryDependencies += "org.apache.spark" % "spark-core_2.11" % "2.0.0"
libraryDependencies += "org.apache.spark" % "spark-sql_2.11" % "2.0.0"

لینک منبع

  • نویسنده
  • تعداد بازدید
0دیدگاه فرستاده شده است.
شما هم دیدگاه خود را بنویسید