Description
When using Avro data as the output key/values of a MapReduce job with TextOutputFormat, you get output that looks like:
org.apache.avro.mapred.AvroKey@1f62000 org.apache.avro.mapred.AvroValue@1 org.apache.avro.mapred.AvroKey@1fe8c4a org.apache.avro.mapred.AvroValue@1 org.apache.avro.mapred.AvroKey@10b85e org.apache.avro.mapred.AvroValue@1 org.apache.avro.mapred.AvroKey@877ec817 org.apache.avro.mapred.AvroValue@1 org.apache.avro.mapred.AvroKey@3f904e5b org.apache.avro.mapred.AvroValue@1 org.apache.avro.mapred.AvroKey@b581cda5 org.apache.avro.mapred.AvroValue@1
I think all that needs to be done is implement toString() on AvroWrapper. It should return its datum as JSON.