title: Required field 'uncompressed_page_size' was not found in serialized data! Parquet
body: <p>I am getting below error while trying to save parquet file from local directory using pyspark. 
  I tried spark 1.6 and 2.2 both give same error </p>
  
  <p>It display's schema properly but gives error at the time of writing file. </p>
  
  <pre><code>    base_path = "file:/Users/xyz/Documents/Temp/parquet"
      reg_path = "file:/Users/xyz/Documents/Temp/parquet/ds_id=48"
      df = sqlContext.read.option( "basePath",base_path).parquet(reg_path)
      out_path = "file:/Users/xyz/Documents/Temp/parquet/out"
      df2 = df.coalesce(5)
      df2.printSchema()
      df2.write.mode('append').parquet(out_path)
  
   org.apache.spark.SparkException: Task failed while writing rows
      Caused by: java.io.IOException: can not read class org.apache.parquet.format.PageHeader: Required field 'uncompressed_page_size' was not found in serialized data! Struct: PageHeader(type:null, uncompressed_page_size:0, compressed_page_size:0)
  </code></pre>