Return-Path: X-Original-To: apmail-hadoop-common-user-archive@www.apache.org Delivered-To: apmail-hadoop-common-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id AD5204E1E for ; Fri, 13 May 2011 04:23:57 +0000 (UTC) Received: (qmail 91447 invoked by uid 500); 13 May 2011 04:23:54 -0000 Delivered-To: apmail-hadoop-common-user-archive@hadoop.apache.org Received: (qmail 91391 invoked by uid 500); 13 May 2011 04:23:54 -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 91377 invoked by uid 99); 13 May 2011 04:23:53 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 May 2011 04:23:53 +0000 X-ASF-Spam-Status: No, hits=3.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of markq2011@gmail.com designates 74.125.83.176 as permitted sender) Received: from [74.125.83.176] (HELO mail-pv0-f176.google.com) (74.125.83.176) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 May 2011 04:23:47 +0000 Received: by pve37 with SMTP id 37so1444641pve.35 for ; Thu, 12 May 2011 21:23:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=E4azATjpEG0gRNOiU/khsV/D/Ii/uZjwhi+sW65i0hI=; b=pVTi3LXv95lw9YosdxpkAWTio2VqTvpjVxKQypgmpPTKRtFqjrahTapWe+k/c7zWwG O05MQVPZdwPddlA8kSbkhWBbTG7wr/p2+QL5ymUpkTf6LA81WuU1YaPR9rHDB6Jom1ah 9DvAPWAn5EzC4pchKeCoZwqJ30ZJkT/OAuStc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=aVUeakxW5yYsaU6W0t+HhfxtMstFH/i7gxCaC/vDWDf/rAPlxkg/Ejad6H7YPP4Y7K g6QsrqyoOExjuwhfq5rxaVj+kwuoZQheHp4MPUTcfaoGo5yknplfd0W6Um2yQfLR3p7/ zUllJPiORWGl+sDSNyYvLC1jl9dEke1GKWAc0= MIME-Version: 1.0 Received: by 10.142.171.15 with SMTP id t15mr552709wfe.442.1305260606902; Thu, 12 May 2011 21:23:26 -0700 (PDT) Received: by 10.142.120.33 with HTTP; Thu, 12 May 2011 21:23:26 -0700 (PDT) In-Reply-To: References: Date: Thu, 12 May 2011 21:23:26 -0700 Message-ID: Subject: Re: Can Mapper get paths of inputSplits ? From: Mark question To: common-user@hadoop.apache.org Content-Type: multipart/alternative; boundary=000e0cd20d98d0522204a320aac4 --000e0cd20d98d0522204a320aac4 Content-Type: text/plain; charset=ISO-8859-1 Thanks for the reply Owen, I only knew about map.input.file. So there is no way I can see the other possible splits (start+length)? like some function that returns strings of map.input.file and map.input.offset of the other mappers ? Thanks, Mark On Thu, May 12, 2011 at 9:08 PM, Owen O'Malley wrote: > On Thu, May 12, 2011 at 8:59 PM, Mark question > wrote: > > > Hi > > > > I'm using FileInputFormat which will split files logically according to > > their sizes into splits. Can the mapper get a pointer to these splits? > and > > know which split it is assigned ? > > > > Look at > > http://hadoop.apache.org/common/docs/r0.20.203.0/mapred_tutorial.html#Task+JVM+Reuse > > In particular, map.input.file and map.input.offset are the configuration > parameters that you want. > > -- Owen > --000e0cd20d98d0522204a320aac4--