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

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

Highlighted

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 http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
Avro file is not generic text schema

What am I doing wrong?

I have explored the source (https://github.com/apache/avro/blob/release-1.8.1/lang/java/tools/src/main/java/org/apache/avro/tool...) and I have not "bytes" in avsc.

 

Any idea?

 

Regards,