I am trying to create a hive table in parquet format with snappy compression. Instead of sqlContext I am using HiveContext to directly save my dataframe results into a table using saveAsTable("<table name>").
I set the format using "hc.setConf('spark.sql.parquet.compression.codec','snappy')"
But the hive table is always created as parquet with gz compression instead of parquet with snappy compression codec. Is there any solution for this?