July 2018
Intermediate to advanced
334 pages
8h 20m
English
Step 4 is broken down into the following steps:
What follows is how the code is laid out in the iris.scala file.
In iris.scala, after the package statement, place the following import statements:
import org.apache.spark.sql.SparkSession
Create SparkSession inside a trait, which we shall call IrisWrapper:
lazy val session: SparkSession = SparkSession.builder().getOrCreate()
Just one SparkSession is made available to all classes extending from ...
Read now
Unlock full access