I feel so good that Holden replied.
Yes, that was the problem. I was running from Intellij, I removed the
provided scope and works great.
Thanks a lot.
On Fri, Nov 4, 2016 at 2:05 PM, Holden Karau wrote:
> It seems like you've marked the spark jars as provided, in this
It seems like you've marked the spark jars as provided, in this case they
would only be provided you run your application with spark-submit or
otherwise have Spark's JARs on your class path. How are you launching your
application?
On Fri, Nov 4, 2016 at 2:00 PM, shyla deshpande
object App {
import org.apache.spark.sql.functions._
import org.apache.spark.sql.SparkSession
def main(args : Array[String]) {
println( "Hello World!" )
val sparkSession = SparkSession.builder.
master("local")
.appName("spark session example")
.getOrCreate()
}