Return-Path: Delivered-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Received: (qmail 8747 invoked from network); 14 Aug 2009 15:20:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 14 Aug 2009 15:20:30 -0000 Received: (qmail 62155 invoked by uid 500); 14 Aug 2009 15:20:37 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 62105 invoked by uid 500); 14 Aug 2009 15:20:37 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-issues@hadoop.apache.org Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 62090 invoked by uid 99); 14 Aug 2009 15:20:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Aug 2009 15:20:37 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Aug 2009 15:20:35 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id CD54E234C004 for ; Fri, 14 Aug 2009 08:20:14 -0700 (PDT) Message-ID: <135328610.1250263214826.JavaMail.jira@brutus> Date: Fri, 14 Aug 2009 08:20:14 -0700 (PDT) From: "Tom White (JIRA)" To: common-issues@hadoop.apache.org Subject: [jira] Updated: (HADOOP-6165) Add metadata to Serializations In-Reply-To: <1308804598.1248261914878.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HADOOP-6165?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Tom White updated HADOOP-6165: ------------------------------ Attachment: HADOOP-6165-v3.patch Here's a new patch which adopts the names suggested by Doug. I've also added AvroGenericSerialization which looks for a schema in the metadata, and a test for it. I haven't added the fallback capability discussed, but it shouldn't be too hard to add. I've also fixing failing tests, and reduced the number of deprecation warnings - I can't get rid of all of them until the deprecated interfaces are removed. > Add metadata to Serializations > ------------------------------ > > Key: HADOOP-6165 > URL: https://issues.apache.org/jira/browse/HADOOP-6165 > Project: Hadoop Common > Issue Type: New Feature > Components: contrib/serialization > Reporter: Tom White > Assignee: Tom White > Priority: Blocker > Fix For: 0.21.0 > > Attachments: HADOOP-6165-v2.patch, HADOOP-6165-v3.patch, HADOOP-6165.patch > > > The Serialization framework only allows a class to be passed as metadata. This assumes there is a one-to-one mapping between types and Serializations, which is overly restrictive. By permitting applications to pass arbitrary metadata to Serializations, they can get more control over which Serialization is used, and would also allow, for example, one to pass an Avro schema to an Avro Serialization. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.