January 2018
Intermediate to advanced
470 pages
11h 9m
English
We need to import a Spark session so that we can create the Spark session, the gateway of our Spark app:
import org.apache.spark.sql.SparkSession
val spark: SparkSession = SparkSession
.builder()
.appName("MovieSimilarityApp")
.master("local[*]")
.config("spark.sql.warehouse.dir", "E:/Exp/")
.getOrCreate()
Read now
Unlock full access