add mapreduce for Avro, with log