Note the above has a slight typo
You can also set in the sqlContext directly: sqlContext.setConf("spark.sql.parquet.compression.codec", "snappy")
Unfortunately it appears that lz4 isnt supported as a parquet compression codec. Im not sure why as lz4...