Please first register the AvroSerDe in Hive.
Then format the rows based on that. If your Hive version is higher than 0.14+ than you don't need to format it.
Please refer the Cloudera link for more detail information:
More information about, how to use Avro file format:
Hope this helps.