I am a new beginner of spark. I am creating spark context as:
spark = SparkSession.builder.enableHiveSupport().getOrCreate() sc = spark.sparkContext sqlContext