I am rather confused that I use Avro with map reduction and cannot find suitable tutorials.
Classes like AvroJob and AvroMapper seem to be designed to solve problems when input and output are Avro data files. How about when your input is plain text?
In particular:
My cartographer accepts LongWritable and Text keys as input. It emits text keys and MyAvroRecord values.
My reducer accepts text keys and Iterator MyAvroRecords as input and emits text keys and MyAvroRecord values.
How to get an OutputFormat that will write these text keys and MyAvroRecord values ββto a file?
Cheers, dave
source share