Return-Path: Delivered-To: apmail-hadoop-hbase-dev-archive@minotaur.apache.org Received: (qmail 60197 invoked from network); 13 Feb 2010 18:46:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 13 Feb 2010 18:46:49 -0000 Received: (qmail 30732 invoked by uid 500); 13 Feb 2010 18:46:49 -0000 Delivered-To: apmail-hadoop-hbase-dev-archive@hadoop.apache.org Received: (qmail 30669 invoked by uid 500); 13 Feb 2010 18:46:49 -0000 Mailing-List: contact hbase-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hbase-dev@hadoop.apache.org Delivered-To: mailing list hbase-dev@hadoop.apache.org Received: (qmail 30659 invoked by uid 99); 13 Feb 2010 18:46:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 13 Feb 2010 18:46:49 +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; Sat, 13 Feb 2010 18:46:48 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 75F3D29A0013 for ; Sat, 13 Feb 2010 10:46:28 -0800 (PST) Message-ID: <2005007819.255061266086788481.JavaMail.jira@brutus.apache.org> Date: Sat, 13 Feb 2010 18:46:28 +0000 (UTC) From: "Lars George (JIRA)" To: hbase-dev@hadoop.apache.org Subject: [jira] Commented: (HBASE-2225) Enable compression in HBase Export In-Reply-To: <452392188.253721266075988266.JavaMail.jira@brutus.apache.org> 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/HBASE-2225?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12833434#action_12833434 ] Lars George commented on HBASE-2225: ------------------------------------ +1 I have done the same in the past and can confirm the implicit support by the InputFormat. I added it like this {code} // set output stream compression if (params.get(CONF_COMPRESS) != null) { job.set("mapred.output.compress", "true"); job.set("mapred.output.compression.codec", "org.apache.hadoop.io.compress.GzipCodec"); } {code} where CONF_COMPRESS is a simple command line switch. This is mapred code so Ted's code is more current and can be used as is. Ted, you want to make a patch? If not I can add it as well. Let me know. > Enable compression in HBase Export > ---------------------------------- > > Key: HBASE-2225 > URL: https://issues.apache.org/jira/browse/HBASE-2225 > Project: Hadoop HBase > Issue Type: Improvement > Components: util > Affects Versions: 0.20.1 > Environment: OS agnostic > Reporter: Ted Yu > Priority: Minor > Original Estimate: 0.5h > Remaining Estimate: 0.5h > > org.apache.hadoop.hbase.mapreduce.Export should set compression codec > In createSubmittableJob(), the following should be added: > FileOutputFormat.setCompressOutput(job, true); > FileOutputFormat.setOutputCompressorClass(job, org.apache.hadoop.io.compress.GzipCodec.class); > From my experiment, 10% to 50% reduction in Export output has been observed. > SequenceFileInputFormat used by the Import tool is able to detect GzipCodec - there is no change for Import class. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.