1
我在通過Eclipse使用Spark SQL程序時面臨以下問題。爲什麼Eclipse給「對象sql不是包org.apache.spark的成員」?
代碼線
import org.apache.spark.sql.{Row, SparkSession}
給出:
對象SQL不是包的成員org.apache.spark
SBT文件細節
name := "SparkXXSql"
version := "1.0"
scalaVersion := "2.11.8"
libraryDependencies += "org.apache.spark" %% "spark-core_2.11" % "2.0.0" % "provided"
libraryDependencies += "org.apache.spark" %% "spark-sql_2.11" % "2.0.0" % "provided"
resolvers += Resolver.mavenLocal