Return-Path: Delivered-To: apmail-hadoop-mapreduce-user-archive@minotaur.apache.org Received: (qmail 5751 invoked from network); 30 Jan 2011 08:22:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 30 Jan 2011 08:22:23 -0000 Received: (qmail 82728 invoked by uid 500); 30 Jan 2011 08:22:22 -0000 Delivered-To: apmail-hadoop-mapreduce-user-archive@hadoop.apache.org Received: (qmail 82312 invoked by uid 500); 30 Jan 2011 08:22:20 -0000 Mailing-List: contact mapreduce-user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: mapreduce-user@hadoop.apache.org Delivered-To: mailing list mapreduce-user@hadoop.apache.org Received: (qmail 82304 invoked by uid 99); 30 Jan 2011 08:22:19 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 30 Jan 2011 08:22:19 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of qwertymaniac@gmail.com designates 209.85.161.48 as permitted sender) Received: from [209.85.161.48] (HELO mail-fx0-f48.google.com) (209.85.161.48) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 30 Jan 2011 08:22:14 +0000 Received: by fxm2 with SMTP id 2so5139060fxm.35 for ; Sun, 30 Jan 2011 00:21:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; bh=UECsowoJIlyvRFSrcWYF3mNwnOPfXqtzG2wZxSL+MYU=; b=RP4yCZK7/JF1FMA9DkCulf7aM3DRMKkE7o9/QlqJEvoeonc8+uLLSVkHD0EUUDKVRr pMwILe7WoIeBgwBC2JD3QOfp/Nc31El3JxNMCVDniz63GlHfli0szWnRPD/S+PU/B6e7 JV7XwUORiWh7XvC8K0vIUZUOutw+pQMP1ClxI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=oBK/Jg5F6Nej7IfAg/8g0icwlsbqpXF7CZtP9/dH41R7vVJTbARHeeft+7jBfxbnxe nc7/El7cvDAGhGAqhCW30TGcC7VV6bXzbjqhDmj1ntRZpvTtU7PXSwKsapoa1xc65ncs XHJWtUGHMZ9CJDjmAkxg/aG4CDg97KzHoaYiM= Received: by 10.223.85.203 with SMTP id p11mr4477554fal.108.1296375698823; Sun, 30 Jan 2011 00:21:38 -0800 (PST) MIME-Version: 1.0 Received: by 10.223.124.200 with HTTP; Sun, 30 Jan 2011 00:21:18 -0800 (PST) In-Reply-To: References: From: Harsh J Date: Sun, 30 Jan 2011 13:51:18 +0530 Message-ID: Subject: Re: Old API: obtaining task attempt ID in the mapper? To: mapreduce-user@hadoop.apache.org Content-Type: text/plain; charset=ISO-8859-1 Yes, I believe mapred.task.id should be parse-able by the mapred.TaskAttemptID class. But mapred.tip.id would give you the Task ID itself, instead of an attempt ID. On Sun, Jan 30, 2011 at 1:24 PM, Dmitriy Lyubimov wrote: > Thanks. > I suppose one of them is meant to be parsed with TaskAttemptID.forName(..), > right? > > On Sat, Jan 29, 2011 at 10:50 PM, Harsh J wrote: >> >> The JobConf will contain a property name-value pair for this. See the >> table below for task-local properties: >> >> http://hadoop.apache.org/common/docs/r0.20.2/mapred_tutorial.html#Task+JVM+Reuse >> >> On Sun, Jan 30, 2011 at 7:26 AM, Dmitriy Lyubimov >> wrote: >> > Hi, >> > I am doing a piece of backporting some code to old API. i have a need to >> > obtain task attempt id within mapper initialization, which is passed in >> > thru >> > context in the new API. However, in the old api i only have >> > JobConfigurable#configure() which passes in JobConf. >> > How do i obtain task id attempt (i actually need just task id) in the >> > old >> > api (0.20 platform)? >> > Thank you very much. >> > -Dmitriy >> >> >> >> -- >> Harsh J >> www.harshj.com > > -- Harsh J www.harshj.com