Return-Path: X-Original-To: apmail-avro-dev-archive@www.apache.org Delivered-To: apmail-avro-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E98F69BBB for ; Thu, 13 Sep 2012 21:17:07 +0000 (UTC) Received: (qmail 37822 invoked by uid 500); 13 Sep 2012 21:17:07 -0000 Delivered-To: apmail-avro-dev-archive@avro.apache.org Received: (qmail 37753 invoked by uid 500); 13 Sep 2012 21:17:07 -0000 Mailing-List: contact dev-help@avro.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@avro.apache.org Delivered-To: mailing list dev@avro.apache.org Received: (qmail 37742 invoked by uid 99); 13 Sep 2012 21:17:07 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Sep 2012 21:17:07 +0000 Date: Fri, 14 Sep 2012 08:17:07 +1100 (NCT) From: "Alexandre Normand (JIRA)" To: dev@avro.apache.org Message-ID: <1791481951.77230.1347571027661.JavaMail.jiratomcat@arcas> Subject: [jira] [Created] (AVRO-1162) AvroKeyValueOutputFormat doesn't support serialization of data using reflection MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 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