There's more...

Prior to Spark 2.0, getting access to a Spark cluster was done via SparkContext.

The access to the subsystems such as SQL was per-specific names context (for example, SQLContext).

Spark 2.0 changed how we gain access to a cluster by creating a single unified access point (namely, SparkSession).

Get Apache Spark 2.x Machine Learning Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.