Return-Path: X-Original-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2AC0710800 for ; Sun, 21 Jul 2013 21:42:50 +0000 (UTC) Received: (qmail 40492 invoked by uid 500); 21 Jul 2013 21:42:50 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 40269 invoked by uid 500); 21 Jul 2013 21:42:50 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-issues@hadoop.apache.org Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 40237 invoked by uid 99); 21 Jul 2013 21:42:48 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 21 Jul 2013 21:42:48 +0000 Date: Sun, 21 Jul 2013 21:42:48 +0000 (UTC) From: "Gang Li (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (HADOOP-9753) wrong offset for the first record in index file created by fix function in MapFile MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Gang Li created HADOOP-9753: ------------------------------- Summary: wrong offset for the first record in index file created by fix function in MapFile Key: HADOOP-9753 URL: https://issues.apache.org/jira/browse/HADOOP-9753 Project: Hadoop Common Issue Type: Bug Components: io Affects Versions: 1.0.4 Environment: ubuntu 12.04 jdk 7.0 hadoop-1.0.4 Reporter: Gang Li I want to convert a sequence file into a map file. So i used the fix function provided by MapFile to create the index file. Also i set the indexInterval as 1 since i want to index each record in the data file. However, i found that the position of the first record in the data file was incorrectly indexed by the index file. And it turns out that the fix function sets the position of the first record as 0. This is wrong because the reader of the data sequence file has already read the head and the position should be the length of the head. So, i tried to set the position as the correct value and it now works. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira