Uploaded image for project: 'Apache Avro'
  1. Apache Avro
  2. AVRO-1302

Files written via Python and Avro 1.7.4 on Windows can't be read using Java program

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.7.4
    • 1.8.0
    • doc, python
    • None

    Description

      I'm not sure if this is a Python issue, Avro issue or Windows issue. However, if create an Avro file on Windows using Python 2.7.4 and Avro 1.7.4. Then try to read it with a java program, it fails with:

      Successfully opened the Python avro file now I'm going to attempt to read from it
      Exception in thread "main" org.apache.avro.AvroRuntimeException: java.io.IOException: Invalid sync!
      at org.apache.avro.file.DataFileStream.hasNext(DataFileStream.java:210)
      at JavaPythonAvroExample.main(JavaPythonAvroExample.java:27)
      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)
      ... 1 more

      Attachments

        1. AVRO-1302.1.patch
          3 kB
          Lars Francke

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            larsfrancke Lars Francke
            cconner Christopher Conner
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment