Do you have sync markers in your avro data ?
On Sat, Apr 11, 2015 at 7:32 PM, Shing Hing Man <[email protected]> wrote:
> Hi,
> I tried to convert an avro file using
> java -jar avro-tools-1.7.7.jar tojson myAvro.avro
>
> But I get following exception:
>
>
> rn1DUtgLcovmF0VhaAEsP2Jsvn3csbH15Ayf34Ulibh-DkpCRIgRhq7T-SwsqWCuhjmdSIPTUeL3nkenFxloSaB20vZ.KV.oFPUFLTYkag==/0.31/","referer":"","useragent":"Mozilla/5.0
> (Linux; U; Android 4.2.2; de-de; GT-I8200N Build/JDQ39) AppleWebKit/534.30
> (KHTML, like Gecko) Version/4.0 Mobile
> Safari/534.30"},"metadata":{"compression_ratio":null},"uuid":{"string":"2766ae65-9d53-45d2-8060-1f5ca0f0e3e4"},"user_ip":{"string":"11.26.132.6"},"exchange":{"string":Exception
> in thread "main" org.apache.avro.AvroRuntimeException: java.io.IOException:
> Invalid sync!
> at org.apache.avro.file.DataFileStream.hasNext(DataFileStream.java:210)
> 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: Invalid sync!
> at
> org.apache.avro.file.DataFileStream.nextRawBlock(DataFileStream.java:293)
> at org.apache.avro.file.DataFileStream.hasNext(DataFileStream.java:198)
> ... 3 more
>
> What does the exception mean ?
> Does it mean the avro file is corrupted ?
>
> Thanks in advance for your assistance !
>
> Shing
>
>
--
Deepak