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

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.7.4
    • Fix Version/s: 1.8.0
    • Component/s: doc, python
    • Labels:
      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

            People

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

              Dates

              • Created:
                Updated:
                Resolved: