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 initialized in my parent component and been passed to the child components as SparkSession.
In one of my child components, I wanted to add two more configurations to my SparkContext. Hence, I need to retrieve the SparkContext from the SparkSession, stop it and recreate the SparkSession with the additional configuration. To do so, how can I retrieve SparkContext from SparkSession?
spark.sparkContext)? - ayplamvar spCon = sparkSession.sparkContextThe documentation kinda mislead me. Thanks a lot!! - Naveen Balasubramanian