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 25AEFE3D6 for ; Fri, 8 Feb 2013 17:11:17 +0000 (UTC) Received: (qmail 111 invoked by uid 500); 8 Feb 2013 17:11:14 -0000 Delivered-To: apmail-avro-dev-archive@avro.apache.org Received: (qmail 99958 invoked by uid 500); 8 Feb 2013 17:11:14 -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 99916 invoked by uid 99); 8 Feb 2013 17:11:14 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Feb 2013 17:11:14 +0000 Date: Fri, 8 Feb 2013 17:11:14 +0000 (UTC) From: "Doug Cutting (JIRA)" To: dev@avro.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (AVRO-1243) Avro support for all compression codecs MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AVRO-1243?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13574631#comment-13574631 ] Doug Cutting commented on AVRO-1243: ------------------------------------ Since, if possible, we'd like to generate interoperable files, we might detect when the Hadoop codec is equivalent to an Avro codec (Snappy or Gzip) and use the built-in codec instead. > Avro support for all compression codecs > --------------------------------------- > > Key: AVRO-1243 > URL: https://issues.apache.org/jira/browse/AVRO-1243 > Project: Avro > Issue Type: Improvement > Components: java > Affects Versions: 1.7.3 > Reporter: Ted Malaska > Priority: Minor > Attachments: AVRO-1243.not-ready.1.patch, AVRO-1243.not-ready.patch > > > I may be reading this wrong but at this time org.apache.avro.file.CodecFactory only supports null, deflate, and snappy compression codecs. > I would like to change the fromString method to use Class.forName(codec).newInstance(); after the codec was not found in the REGISTERED map but before the AvroRuntimeException is thrown. > Here are some of my supporting thoughts > 1. This should not interduce much slowness because it will only be called initialize. > 2. This will allow for support for GZip, BZip2, and LZO with out adding more dependances to the maven pom file. > 3. This will allow for a future Jiri I would like to do that would allow AvroOutputFormat to be able to use the following configs: mapred.output.compress and mapred.output.compression.codec -- 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