Have you checked out SchemaRDD?
There should be an examp[le of writing to Parquet files there.
BTW, FYI I was discussing this with the SparlSQL developers last week and
possibly using Apache Gora  for achieving this.
On Wed, Jul 30, 2014 at 5:14 AM, Fengyun RAO <[EMAIL PROTECTED]> wrote: