Im trying to read data from mysql and write it back to parquet file in s3 with specific partitions as follows:
df=sqlContext.read.format(\'jdbc\')\\ .opti
You should set these properties:
partitionColumn, lowerBound, upperBound, numPartitions
as it is documented here: http://spark.apache.org/docs/latest/sql-programming-guide.html#jdbc-to-other-databases