title: spark save and read parquet on HDFS
body: <p>I am writing this code </p>
  
  <pre><code>val inputData = spark.read.parquet(inputFile)
  spark.conf.set("spark.sql.shuffle.partitions",6)
  val outputData = inputData.sort($"colname")
  outputData.write.parquet(outputFile) //write on HDFS
  </code></pre>
  
  <p>If I want to read the content of the file "outputFile" from HDFS, I don't find the same number of partitions and the data is not sorted. Is this normal? </p>
  
  <p>I am using Spark 2.0</p>