Skip to content

Tag: avro

Avro schema file references in a Avro schema

I have nearly 100 avsc files and most of these avsc files refer to another asvc file usually as their type. To give an example Item.avsc in ./com/example/common ItemId.avsc in ./com/example/common Features.avsc in ./com/example/common When I want to parse the schema of Item.avsc it raises: I found a workaroun…

Avro logicalType String Date conversion to EPOCH timestamp-millis

I have below schema I intend to supply date to it, and have conversion convert the date to epoch mili. //Conversion code But this code doesnt work… I was expecting it to convert to timestamp milis (i hardcoded 123L in above sample). Any help? Answer Referring back to How to define a LogicalType in Avro.…

Avro – java.io.IOException: Not a data file

I am using https://github.com/allegro/json-avro-converter to convert my json message into an avro file. After calling the convertToAvro method I get a byte array: byte[] byteArrayJson. Then I am using the commons library from Apache: The file is created. When I try to reconvert it to json, using: I have creat…