Have you looked into the code for the toText Java?
We construct the Schema.Parser().parse method as follows

if (!fileReader.getSchema().equals(new
Schema.Parser().parse(TEXT_FILE_SCHEMA))) {

TEXT_FILE_SCHEMA has a static value of

private static final String TEXT_FILE_SCHEMA =

We can therefore conclude that your Avro data has a Schema which does not
match this... therefore benehviour is correct.
Are you able to try doing fileReader.getSchema() to see what thre Schema is
On Mon, Jul 14, 2014 at 1:22 AM, julianpeeters <[EMAIL PROTECTED]>

NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB