Return-Path: Delivered-To: apmail-hadoop-core-dev-archive@www.apache.org Received: (qmail 83906 invoked from network); 9 Sep 2008 23:14:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Sep 2008 23:14:40 -0000 Received: (qmail 88504 invoked by uid 500); 9 Sep 2008 23:14:33 -0000 Delivered-To: apmail-hadoop-core-dev-archive@hadoop.apache.org Received: (qmail 88476 invoked by uid 500); 9 Sep 2008 23:14:33 -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 88457 invoked by uid 99); 9 Sep 2008 23:14:33 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Sep 2008 16:14:33 -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, 09 Sep 2008 23:13:43 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id AB4F3234C1DB for ; Tue, 9 Sep 2008 16:13:44 -0700 (PDT) Message-ID: <48577289.1221002024700.JavaMail.jira@brutus> Date: Tue, 9 Sep 2008 16:13:44 -0700 (PDT) From: "Owen O'Malley (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=12629652#action_12629652 ] Owen O'Malley commented on HADOOP-4065: --------------------------------------- I think this is too complicated. What is the justification for these new interfaces? We already have RecordReader that already expresses these concepts. Once the TFile stuff is ready, I think it would make a lot of sense to build an ObjectFile that uses the pluggable serializer framework to save any objects. At that point, it becomes a potential replacement for SequenceFile. By using the serializer framework, it should work fine with Java serialization, Thrift, or Protocol Buffers. I don't think having a Thrift file format is very compelling at that point. > 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: mapred > Reporter: Joydeep Sen Sarma > Attachments: HADOOP-4065.0.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.