Retrieve SparkContext from SparkSession January 2, 2024 by Tarik Just to post as an answer – the SparkContext can be accessed from SparkSession using spark.sparkContext (no parenthesis)