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

AvroKeyValueOutputFormat doesn't support serialization of data using reflection

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.7.2
    • 1.7.2
    • java

    Description

      When setting up a map/reduce job with the AvroKeyValueOutputFormat, using Reflection to create the schema and AvroValue to wrap the data objects to serialize, I get a ClassCastException because the datum is the object and not an instance of IndexedRecord.

      I think that AvroKeyValueRecordWriter should create a ReflectDatumWriter much like AvroKeyRecordWriter does instead of a GenericDatumWriter, right?

      Attachments

        1. AVRO-1162.patch
          4 kB
          Alexandre Normand
        2. AVRO-1162.patch
          1 kB
          Alexandre Normand

        Activity

          People

            alexandre.normand Alexandre Normand
            alexandre.normand Alexandre Normand
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: