Return-Path: Delivered-To: apmail-hadoop-core-dev-archive@www.apache.org Received: (qmail 17344 invoked from network); 24 Oct 2008 19:38:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 Oct 2008 19:38:37 -0000 Received: (qmail 95606 invoked by uid 500); 24 Oct 2008 19:38:38 -0000 Delivered-To: apmail-hadoop-core-dev-archive@hadoop.apache.org Received: (qmail 95561 invoked by uid 500); 24 Oct 2008 19:38:38 -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 95550 invoked by uid 99); 24 Oct 2008 19:38:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Oct 2008 12:38:38 -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; Fri, 24 Oct 2008 19:37:35 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 6ACBB234C247 for ; Fri, 24 Oct 2008 12:37:44 -0700 (PDT) Message-ID: <1266297117.1224877064434.JavaMail.jira@brutus> Date: Fri, 24 Oct 2008 12:37:44 -0700 (PDT) From: "Joydeep Sen Sarma (JIRA)" To: core-dev@hadoop.apache.org Subject: [jira] Commented: (HADOOP-4065) support for reading binary data from flat files In-Reply-To: <165315971.1220482544298.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-4065?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12642527#action_12642527 ] Joydeep Sen Sarma commented on HADOOP-4065: ------------------------------------------- +1. > support for reading binary data from flat files > ----------------------------------------------- > > Key: HADOOP-4065 > URL: https://issues.apache.org/jira/browse/HADOOP-4065 > Project: Hadoop Core > Issue Type: Bug > Components: contrib/hive > Reporter: Joydeep Sen Sarma > Assignee: Pete Wyckoff > Fix For: 0.20.0 > > Attachments: FlatFileReader.java, HADOOP-4065.0.txt, HADOOP-4065.1.txt, HADOOP-4065.1.txt, HADOOP-4065.2.txt, ThriftFlatFile.java > > > like textinputformat - looking for a concrete implementation to read binary records from a flat file (that may be compressed). > it's assumed that hadoop can't split such a file. so the inputformat can set splittable to false. > tricky aspects are: > - how to know what class the file contains (has to be in a configuration somewhere). > - how to determine EOF (would be nice if hadoop can determine EOF and not have the deserializer throw an exception (which is hard to distinguish from a exception due to corruptions?)). this is easy for non-compressed streams - for compressed streams - DecompressorStream has a useful looking getAvailable() call - except the class is marked package private. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.