This Tool lets you create a Avro schema file from existing Hive table. You can use the same for Avro file creation
https://github.com/maxmithun/AvroSchemaGenTool
Usage : java -jar Jarfile.jar <database> <table> <Schema-filename.avsc> <namespace> <comment>