I\'m running a spark batch job and uses SparkSession as I need a lot of spark-sql features to process in each of my components. The SparkContext is in
SparkSession
SparkContext
Just to post as an answer - the SparkContext can be accessed from SparkSession using spark.sparkContext (no parenthesis)
spark.sparkContext