Thought I’d ask for a second set of eyes.
I’m working with a large schema, a basic translation of some tab separated data
with many fields (over 300).
It appears that the output of Random can not be read back as JSON, with this
schema.
Is this a bug, or me simply mis-using the method calls in Avro tools?
$ java -jar avro-tools-1.7.7.jar random --schema-file schema.avsc --count 20 -
> test.avro
$ java -jar avro-tools-1.7.7.jar tojson test.avro
Exception in thread "main" org.apache.avro.AvroRuntimeException:
java.io.IOException: Block size invalid or too large for this implementation:
-51
at
org.apache.avro.file.DataFileStream.hasNextBlock(DataFileStream.java:275)
at org.apache.avro.file.DataFileStream.hasNext(DataFileStream.java:197)
at org.apache.avro.tool.DataFileReadTool.run(DataFileReadTool.java:77)
at org.apache.avro.tool.Main.run(Main.java:84)
at org.apache.avro.tool.Main.main(Main.java:73)
Caused by: java.io.IOException: Block size invalid or too large for this
implementation: -51
at
org.apache.avro.file.DataFileStream.hasNextBlock(DataFileStream.java:266)
... 4 more