SparkSession

The SparkSession is the entry point of a Spark SQL and DataFrame application. It lets you read data, run SQL queries, and configure the application. It is created with a builder, and a single session is generally enough per application.

Example

spark = SparkSession.builder.appName('ventes').getOrCreate()

Related concepts

The whole glossary