Details
Description
After stopping SparkSession if we recreate it and use HiveContext in it. it will throw error.
Steps to reproduce:
spark = SparkSession.builder.enableHiveSupport().getOrCreate()
spark.sql("show databases")
spark.stop()
spark = SparkSession.builder.enableHiveSupport().getOrCreate()
spark.sql("show databases")
"Java.lang.illegalStateException: Cannot call methods on a stopped sparkContext"
Above error occurs only in case of Pyspark not in SparkShell