I am trying to work with spark-sql but while I importing
import org.apache.spark.sql.{Row, SparkSession}
getting following error:
object sql is not a member of package org.apache.spark
Here are my details:
Spark version: 1.6.2 Scala version: 2.11.8 sbt version: 0.13.16
Here is my build.sbt file:
name := "sbt_demo"
version := "1.0"
scalaVersion := "2.11.8"
libraryDependencies += "org.apache.spark" %% "spark-core" % "1.6.2"
libraryDependencies += "org.apache.spark" %% "spark-sql" % "1.6.2"
Note: there is another question with the same problem in Stack Overflow, but that accepted answer didn't help me. That is the reason why I am asking again.