Retrieve SparkContext from SparkSession

后端 未结 2 1101
闹比i
闹比i 2021-02-18 23:09

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

2条回答
  •  耶瑟儿~
    2021-02-19 00:03

    Just to post as an answer - the SparkContext can be accessed from SparkSession using spark.sparkContext (no parenthesis)

提交回复
热议问题