Achilleus explains SparkSession and why it’s useful even if you know about SparkContext:
Spark session is a unified entry point of a spark application from Spark 2.0. It provides a way to interact with various spark’s functionality with a lesser number of constructs. Instead of having a spark context, hive context, SQL context, now all of it is encapsulated in a Spark session.
Read on to learn more about SparkSession and how you can use it.