title: How to create an empty dataframe in Spark 1.6.2 given an example of Spark 2.0.0?
body: <p>Is there the way to substitute this line of code to be able to execute it with PySpark version 1.6.2, not 2.0.0? The problem is that <code>SparkSession</code> does not exist in Spark 1.6.2.</p>
  
  <pre><code>cfg = SparkConf().setAppName('s')
  spark = SparkSession.builder.enableHiveSupport().config(conf=cfg).getOrCreate()
  df = spark.createDataFrame([], schema=StructType([StructField('id', StringType()),
                                                           StructField('pk', StringType()),
                                                           StructField('le', StringType()),
                                                           StructField('or', StringType())]))
  </code></pre>