Alexandre Normand created AVRO-1162:
---------------------------------------
Summary: AvroKeyValueOutputFormat doesn't support serialization of
data using reflection
Key: AVRO-1162
URL: https://issues.apache.org/jira/browse/AVRO-1162
Project: Avro
Issue Type: Bug
Components: java
Affects Versions: 1.7.2
Reporter: Alexandre Normand
Assignee: Alexandre Normand
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?
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira