Return-Path: Delivered-To: apmail-hadoop-common-user-archive@www.apache.org Received: (qmail 78140 invoked from network); 23 Jan 2010 14:54:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 23 Jan 2010 14:54:51 -0000 Received: (qmail 26806 invoked by uid 500); 23 Jan 2010 14:54:49 -0000 Delivered-To: apmail-hadoop-common-user-archive@hadoop.apache.org Received: (qmail 26724 invoked by uid 500); 23 Jan 2010 14:54:49 -0000 Mailing-List: contact common-user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-user@hadoop.apache.org Delivered-To: mailing list common-user@hadoop.apache.org Received: (qmail 26714 invoked by uid 99); 23 Jan 2010 14:54:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 23 Jan 2010 14:54:49 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [206.190.39.244] (HELO web54202.mail.re2.yahoo.com) (206.190.39.244) by apache.org (qpsmtpd/0.29) with SMTP; Sat, 23 Jan 2010 14:54:40 +0000 Received: (qmail 54239 invoked by uid 60001); 23 Jan 2010 14:54:17 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1264258457; bh=B8SGI2cmsolsFa+i8xdPHqMg9IoKyhCpkAkDCBVl4r4=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=ja7XttfI3Ph+CVGT16LxaaP77aX8rzi3Z8jXM+ye5i9/T8W0VqT2YNPnyAmk5NlDXtsT3BW02LyvSxU1fi70wBsGn9Cs61w4HhMt+f77ukmMOprkGRLhGavtXkKHiueQqLg2DSVgFMvEnRfRBhQgc8531jBBeMX+XyULoVcE+Fg= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=HzX4ElWVSa6nBu44RYcCfecOBXR3clPb4s9I2oBkowSqPwHTTslUhHo3jzWg1AsDK+EU1Nju9Do2RJfdysFjR2HKcM0NdQ3M20ZyxDENneUfvZy9XasmSiJhI4xwZSaJsbBejOWKdZ+e8QffdrzhZG+j2Qmxac8P1OjZWwa/YbU=; Message-ID: <83669.53128.qm@web54202.mail.re2.yahoo.com> X-YMail-OSG: D_ldVOYVM1m_icDAaALmTinoMfMfjTgr2lhWDwLBlOOZenOVgo5AIPn3iopEz2PfSZ5NCyJt8jYVTJEWamH.tlot7hsHFzrHJYG.pw6Z5p8Smp7aXEi28UtlqLpAMahVNWLJhejIfqWgBq2X0pTQ8ZLaTQdpsYwuK3_uzK1_.xU1kiPeb_1tIi_BQCTnzysXSKSOWrrNY.98Ea3ow1UlcqAEgKgsDMWC_3VYQiVXv0Fp3hIk6hWMUNff.9DL7Ee7KvsD662aO7q_fOpIEX4Ta6hNt4FDvwm6UB4gX04wKOZynlOyGcL1e5NahCRiylM5kQ7ZnzlxS8BHsjC3r6DynEvUPSgw2xly5M5u2xVxlr9PoYUwfWv_4myQ8QBY9RJlzq9aeip9sVeNtCp2XCT3hV4Msr_kBu8WQEdJRvcpcZwCqjVslH3DRQjiSdQg9kUa_1vBWKnW5b4hNJ0ro0JpBD8fUsmHTNKo03Vny.WM3hr6rWbGzsLArwuHtFoz2.mRGuo_Hou2t7R1nFNskUxvCx_.v131lY22Yonu2nN0xCCSoINRnWpmDUjfW7PmOGr524EmOm1t2wx6lCZ1llFGAnYXUu7jbf4mwoWtABfQPTwlHb3lRnNW_0ZrltUJr3g3J4MrO9NF5WEpCzTXo3Q- Received: from [67.81.13.101] by web54202.mail.re2.yahoo.com via HTTP; Sat, 23 Jan 2010 06:54:16 PST X-Mailer: YahooMailClassic/9.1.10 YahooMailWebService/0.8.100.260964 Date: Sat, 23 Jan 2010 06:54:16 -0800 (PST) From: Raymond Jennings III Subject: Re: Passing whole text file to a single map To: common-user@hadoop.apache.org In-Reply-To: <27286204.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Not sure if this solves your problem but I had a similar case where there was unique data at the beginning of the file and if that file was split between maps I would lose that for the 2nd and subsequent maps. I was able to pull the file name from the conf and read the first two lines for every map. --- On Sat, 1/23/10, stolikp wrote: > From: stolikp > Subject: Passing whole text file to a single map > To: core-user@hadoop.apache.org > Date: Saturday, January 23, 2010, 9:49 AM > > I've got some text files in my input directory and I want > to pass each single > text file (whole file not just a line) to a map (one file > per one map). How > can I do this ? TextInputFormat splits text into lines and > I do not want > this to happen. > I tried: > http://hadoop.apache.org/common/docs/r0.20./streaming.html#How+do+I+process+files%2C+one+per+map%3F > but it doesn't work for me, compiler doesn't know what > NonSplitableTextInputFormat.class is. > I'm using hadoop 0.20.1 > -- > View this message in context: http://old.nabble.com/Passing-whole-text-file-to-a-single-map-tp27286204p27286204.html > Sent from the Hadoop core-user mailing list archive at > Nabble.com. > >