Return-Path: Delivered-To: apmail-hadoop-core-dev-archive@www.apache.org Received: (qmail 97305 invoked from network); 25 Apr 2008 21:45:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Apr 2008 21:45:31 -0000 Received: (qmail 1802 invoked by uid 500); 25 Apr 2008 21:45:30 -0000 Delivered-To: apmail-hadoop-core-dev-archive@hadoop.apache.org Received: (qmail 1770 invoked by uid 500); 25 Apr 2008 21:45:30 -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 1759 invoked by uid 99); 25 Apr 2008 21:45:30 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Apr 2008 14:45:30 -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, 25 Apr 2008 21:44:45 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 10926234C113 for ; Fri, 25 Apr 2008 14:41:56 -0700 (PDT) Message-ID: <1771761429.1209159715980.JavaMail.jira@brutus> Date: Fri, 25 Apr 2008 14:41:55 -0700 (PDT) From: "Doug Cutting (JIRA)" To: core-dev@hadoop.apache.org Subject: [jira] Commented: (HADOOP-3315) New binary file format In-Reply-To: <774412089.1209158875801.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-3315?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12592515#action_12592515 ] Doug Cutting commented on HADOOP-3315: -------------------------------------- [Meta comment: I wish folks would just describe problems in an issue's description, and leave solutions to the comments. Descriptions are appended to every email message. Also, solutions change as a result of discussion, while the problem should not.] Is this a format just for compressed sequence files, or for all sequence files? Is this intended as a replacement for MapFile too? I think some kind of a magic number header at the start files is good to have. That would also permit back-compatibility with SequenceFile in this case. In the index, what is "first record idx" -- is that the key or the ordinal position of the first entry? > New binary file format > ---------------------- > > Key: HADOOP-3315 > URL: https://issues.apache.org/jira/browse/HADOOP-3315 > Project: Hadoop Core > Issue Type: New Feature > Components: io > Reporter: Owen O'Malley > > SequenceFile's block compression format is too complex and requires 4 codecs to compress or decompress. I would propose that we move to: > {code} > block 1 > block 2 > ... > index > tail > {code} > where block is compressed, and contain: > {code} > key/value1: key len (vint), key, value len (vint), value > key/value 2 > ... > {code} > The index would be compressed and contain: > {code} > block 1: offset, first record idx > block 2: offset, first record idx > block 3: offset, first record idx: > ... > {code} > and the tail would look like: > {code} > key class name > value class name > index kind (none, keys, keys+bloom filter) > format version > offset of tail > offset of index > {code} > Then extensions of this format would put more indexes between the last block and the start of the index. So for example, the first key of each block: > {code} > first key of block 1: key len (vint), key > first key of block 2 > ... > offset of start key index > {code} > Another reasonable extension of the key index would be a bloom filter of the keys: > {code} > bloom filter serialization > offset of bloom filter index start > {code} -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.