3.1 Getting all map Keys from DataFrame MapType column
// set Parquet file block size and page size values
int blockSize = 256 * 1024 * 1024;
int pageSize = 64 * 1024;
job.setOutputFormatClass(AvroKeyOutputFormat.class);
AvroKeyOutputFormat.setOutputPath(job, new Path(args 1 » ));
$ bin/spark-shell --packages com.databricks:spark-avro_2.11:3.1.0