Return-Path: Delivered-To: apmail-hadoop-core-dev-archive@www.apache.org Received: (qmail 59243 invoked from network); 1 Jul 2008 22:07:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Jul 2008 22:07:06 -0000 Received: (qmail 27552 invoked by uid 500); 1 Jul 2008 22:07:07 -0000 Delivered-To: apmail-hadoop-core-dev-archive@hadoop.apache.org Received: (qmail 27544 invoked by uid 500); 1 Jul 2008 22:07:06 -0000 Mailing-List: contact core-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: core-dev@hadoop.apache.org Delivered-To: mailing list core-dev@hadoop.apache.org Received: (qmail 27533 invoked by uid 99); 1 Jul 2008 22:07:06 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Jul 2008 15:07:06 -0700 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; Tue, 01 Jul 2008 22:06:24 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id E3DAB234C148 for ; Tue, 1 Jul 2008 15:06:44 -0700 (PDT) Message-ID: <384308898.1214950004918.JavaMail.jira@brutus> Date: Tue, 1 Jul 2008 15:06:44 -0700 (PDT) From: "Bo Adler (JIRA)" To: core-dev@hadoop.apache.org Subject: [jira] Updated: (HADOOP-3562) StreamXMLRecordReader does not support gzipped files In-Reply-To: <2111623636.1213511085051.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HADOOP-3562?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Bo Adler updated HADOOP-3562: ----------------------------- Attachment: 0002-support-for-gzip-d-xml-records.patch Here is a patch which adds gzip support. It was slightly awkward to do in a very clean way. In particular, I had to change the access modifier of a variable from a super-class; arguably, I could have just created a duplicate variable within the StreamInputFormat class, but I expect that other subclasses will have similar issues so I opted for changing the parent class. The other ugly change I had to make was move pos_ into StreamBaseRecordReader, but still require inheritors to update the variable. > StreamXMLRecordReader does not support gzipped files > ---------------------------------------------------- > > Key: HADOOP-3562 > URL: https://issues.apache.org/jira/browse/HADOOP-3562 > Project: Hadoop Core > Issue Type: Bug > Components: contrib/streaming > Affects Versions: 0.17.0 > Reporter: Bo Adler > Attachments: 0001-test-to-demonstrate-problem.patch, 0002-support-for-gzip-d-xml-records.patch > > > I am using Hadoop Streaming to analyze Wikipedia data files, which are in XML format and are compressed because they are so large. While doing some preliminary tests, I discovered that you cannot use StreamXMLRecordReader with gzipped data files -- the data is fed into the mapper script as raw data. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.