Apache Licensed end-to-end working example of reading/writing Apache Avro files using Apache Spark in a manner that is Amazon S3 friendly.
For all the details please visit http://subprotocol.com/system/apache-spark-ec2-avro.html.
View src/main/scala/com/subprotocol/SparkAvroExample.scala for the example source.