Return-Path: Delivered-To: apmail-hadoop-core-user-archive@www.apache.org Received: (qmail 88332 invoked from network); 12 Jan 2009 13:20:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Jan 2009 13:20:22 -0000 Received: (qmail 7852 invoked by uid 500); 12 Jan 2009 13:20:16 -0000 Delivered-To: apmail-hadoop-core-user-archive@hadoop.apache.org Received: (qmail 7568 invoked by uid 500); 12 Jan 2009 13:20:16 -0000 Mailing-List: contact core-user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: core-user@hadoop.apache.org Delivered-To: mailing list core-user@hadoop.apache.org Received: (qmail 7557 invoked by uid 99); 12 Jan 2009 13:20:16 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Jan 2009 05:20:16 -0800 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.85.198.237] (HELO rv-out-0506.google.com) (209.85.198.237) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Jan 2009 13:20:07 +0000 Received: by rv-out-0506.google.com with SMTP id k40so10573154rvb.29 for ; Mon, 12 Jan 2009 05:19:46 -0800 (PST) Received: by 10.141.74.18 with SMTP id b18mr14325159rvl.208.1231766386396; Mon, 12 Jan 2009 05:19:46 -0800 (PST) Received: by 10.141.50.15 with HTTP; Mon, 12 Jan 2009 05:19:46 -0800 (PST) Message-ID: Date: Mon, 12 Jan 2009 13:19:46 +0000 From: "Tom White" To: core-user@hadoop.apache.org Subject: Re: Problem with Hadoop and concatenated gzip files In-Reply-To: <5A1055F3C9314142A922A9FC6AC21A6106DF8CC32C@BALT-EMAIL.corp.advertising.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <5A1055F3C9314142A922A9FC6AC21A6106DF8CC32C@BALT-EMAIL.corp.advertising.com> X-Virus-Checked: Checked by ClamAV on apache.org I've opened https://issues.apache.org/jira/browse/HADOOP-5014 for this. Do you get this behaviour when you use the native libraries? Tom On Sat, Jan 10, 2009 at 12:26 AM, Oscar Gothberg wrote: > Hi, > > I'm having trouble with Hadoop (tested with 0.17 and 0.19) not fully processing certain gzipped input files. Basically it only actually reads and processes a first part of the gzipped file, and just ignores the rest without any kind of warning. > > It affects at least (but is maybe not limited to?) any gzip files that are a result of concatenation (which should be legal to do with gzip format): > http://www.gnu.org/software/gzip/manual/gzip.html#Advanced-usage > > Repro case, using the "WordCount" example from the hadoop distribution: > $ echo 'one two three' > f1 > $ echo 'four five six' > f2 > $ gzip -c f1 > combined_file.gz > $ gzip -c f2 >> combined_file.gz > > Now, if I run "WordCount" with combined_file.gz as input, it will only find the words 'one', 'two', 'three', but not 'four', 'five', 'six'. > > It seems Java's GZIPInputStream may have a similar issue: > http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4691425 > > Now, if I unzip and re-gzip this 'combined_file.gz' manually, the problem goes away. > > It's especially dangerous since Hadoop doesn't show any errors or complains in the least. It just ignores this extra input. The only way of noticing is to run one's app with gzipped- and unzipped data side by side and notice the record counts being different. > > Is anyone else familiar with this problem? Any solutions, workarounds, short of re-gzipping very large amounts of data? > > Thanks! > / Oscar > > ________________________________ > The information transmitted in this email is intended only for the person(s) or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this email in error, please contact the sender and permanently delete the email from any computer. >