Home | About | Sematext search-lucene.com search-hadoop.com
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
 Search Hadoop and all its subprojects:

Switch to Threaded View
Avro >> mail # user >> How to deserialize avro file with union/many schemas?


Copy link to this message
-
Re: How to deserialize avro file with union/many schemas?
thanks for reply.

I used both command line tool and the api code as below:
       GenericDatumReader datum = new GenericDatumReader();
       DataFileReader reader = new DataFileReader(inFile, datum);
       Schema schema = reader.getSchema();

I guss the problem is with the avro file, I know the file is not written
with avro library.

we are working on some other solutions. thanks!
On Thu, Jul 24, 2014 at 9:18 AM, Doug Cutting <[EMAIL PROTECTED]> wrote:
 
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