Convert .avro file to json

About AVRO to JSON?

AVROtoJSON is an online converter for converting an AVRO (.avro) file into an easy to read JSON format. It requires the binary AVRO file to be in a valid format, which includes the schema stored in the file itself.

How to securely convert AVRO to JSON locally

In general, you should not trust any online converters for sensitive information in case you use a malicious website. Instead, you should use the tools availble to do it LOCALLY, on your own computer. In the following example, we will show you how to do this using java and avro-tools jar provided by Apache.

First make sure you have java installed. Then download the avro-tools jar here. And run the following...

  $local java -jar /path/to/avro-tools-1.9.2.jar tojson your-avro-file.avro

Which will convert each record to its json equivalent using schema embedded in the avro file itself.

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.
{"id":"9eb9a4c8-95b7-412a-89e4-2dca5b038c8b", "name": "hello"}
{"id":"40db2a51-eac8-44e7-b58c-eaa7e256ebf7", "name": "world"}
{"id":"2b30653a-8ca7-4941-9b28-8f4c5fbbdb44", "name": "avro"}