New Contributor
Posts: 6
Registered: ‎11-10-2016

avro-tool, param totext to generate a TEXT PLAIN file from AVRO File

Hi team!


I'm exploring the human-readable avro options in the avro-tools jar, namely `tojson` and `totext`.

`tojson` works fine, but I try `totext` with:

`$ java -jar /usr/lib/avro/avro-tools.jar totext totext twitter.avro twitter.txt`,

then twitter.txt is empty and I get this error:

log4j:WARN No appenders could be found for logger (org.apache.hadoop.metrics2.lib.MutableMetricsFactory).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See for more info.
Avro file is not generic text schema

What am I doing wrong?

I have explored the source ( and I have not "bytes" in avsc.


Any idea?




The Kite SDK is a collection of docs, sample code, APIs, and tools to make Hadoop application development faster. Learn more at