An example to read and write avro files using map reduce