pyspark.sql.SparkSession.stop

SparkSession.stop() → None

Stop the underlying SparkContext.