Hi,
I have multiple threads writing to same avro output file(out.avro). When
deserializing out.avro, I get this exception:
org.apache.avro.AvroRuntimeException: java.io.IOException: Invalid sync!
at org.apache.avro.file.DataFileStream.hasNext(DataFileStream.java:210)
at com.example.Main.deserialize(Main.java:80)
at com.example.Main.main(Main.java:50)Caused by:
java.io.IOException: Invalid sync!
at org.apache.avro.file.DataFileStream.nextRawBlock(DataFileStream.java:293)
at org.apache.avro.file.DataFileStream.hasNext(DataFileStream.java:198)
... 2 more
Is this because I'm concurrently writing to out.avro? If it's an issue, is
there a way for multiple threads to simultaneously write to out.avro?
Please provide code samples, if possible.
Thanks.