get spark context from spark session code example Example: get spark context from sparksession spark = SparkSession.getOrCreate() spark.sparkContext()