HDPCD Spark Scala Queries

I am getting SparkSession is not valid. Please let me know how to solve it