I am new to spark and trying to extract data from Hive using spark sql in python by doing the following:
from pyspark.sql import SparkSession, SQLContext sdf