Return-Path: Delivered-To: apmail-avro-dev-archive@www.apache.org Received: (qmail 23844 invoked from network); 25 Oct 2010 20:30:43 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 25 Oct 2010 20:30:43 -0000 Received: (qmail 62466 invoked by uid 500); 25 Oct 2010 20:30:43 -0000 Delivered-To: apmail-avro-dev-archive@avro.apache.org Received: (qmail 62327 invoked by uid 500); 25 Oct 2010 20:30:43 -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 62319 invoked by uid 99); 25 Oct 2010 20:30:43 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Oct 2010 20:30:43 +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.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Oct 2010 20:30:41 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o9PKUJir026674 for ; Mon, 25 Oct 2010 20:30:20 GMT Message-ID: <2807371.65781288038619529.JavaMail.jira@thor> Date: Mon, 25 Oct 2010 16:30:19 -0400 (EDT) From: "Doug Cutting (JIRA)" To: dev@avro.apache.org Subject: [jira] Commented: (AVRO-684) Java tool for altering the codec of an Avro data file stream. In-Reply-To: <11741281.65141288036584948.JavaMail.jira@thor> 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/AVRO-684?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12924709#action_12924709 ] Doug Cutting commented on AVRO-684: ----------------------------------- The codec and deflation level might be specified with '-codec' and '-level', so that the command syntax might be: recodec [-codec codec] [-level level] [infile [outfile]] > Java tool for altering the codec of an Avro data file stream. > ------------------------------------------------------------- > > Key: AVRO-684 > URL: https://issues.apache.org/jira/browse/AVRO-684 > Project: Avro > Issue Type: New Feature > Components: java > Reporter: Patrick Linehan > > An example is worth a thousand words: > cat infile.avro | avro-tools recodec deflate - - > outfile.avro > The above example would create a new file, "outfile.avro", with the same contents as "infile.avro". However, the codec of "outfile.avro" would be "deflate", regardless of the codec of "infile.avro". > Proposed features: > * The tool should preserve any metadata present in the input file. > * Supported codecs will be "deflate" and "null". > * Optionally add support for specifying the deflation level, perhaps with syntax as follows: "deflate:N" where N is the deflation level, e.g. "deflate:4". > Does this proposal sound reasonable? -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.