Reply
Highlighted
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 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,

 

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