concept Avro in category hadoop

appears as: Avro, Avro, Avro
Hadoop in Practice, Second Edition

This is an excerpt from Manning's book Hadoop in Practice, Second Edition.

Listing 3.5. Writing Avro files from outside of MapReduce

Avro isn’t a native key/value serialization format, unlike SequenceFile, so it can require a little shoehorning to get it to work with MapReduce. In this technique you’ll examine the Avro-specific mapper and reducer classes that expose a record-based interface you can use to input and output data.

Another option worth considering is that of a preprocessing step, where you could convert the original XML into a separate line per XML element, or convert it into an altogether different data format, such as a SequenceFile or Avro, both of which solve the splitting problem for you.