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?
On Thu, Jul 24, 2014 at 7:23 AM, Echo <[EMAIL PROTECTED]> wrote:

With which Avro library can't you read a file with a union schema?
Unions are a standard feature and every implementation should be able
to read a file with such a schema.

You can view the file contents with the 'tojson' command line tool:

java -jar /path/to/avro-tools.jar tojson --pretty myfile.avro

(You can also use the 'getschema' command line tool to view the schema
of the file.)

Doug

 
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