Support Questions
Find answers, ask questions, and share your expertise
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Who Agreed with this topic

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

New Contributor

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?




Who Agreed with this topic