Return-Path: Delivered-To: apmail-hadoop-mapreduce-user-archive@minotaur.apache.org Received: (qmail 74931 invoked from network); 30 Jan 2011 06:51:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 30 Jan 2011 06:51:19 -0000 Received: (qmail 29132 invoked by uid 500); 30 Jan 2011 06:51:19 -0000 Delivered-To: apmail-hadoop-mapreduce-user-archive@hadoop.apache.org Received: (qmail 28809 invoked by uid 500); 30 Jan 2011 06:51:16 -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 28801 invoked by uid 99); 30 Jan 2011 06:51:16 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 30 Jan 2011 06:51:16 +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 (nike.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 06:51:09 +0000 Received: by fxm2 with SMTP id 2so5109303fxm.35 for ; Sat, 29 Jan 2011 22:50:49 -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=NvgzHv8YXjNZNN20i9gcrevvoHoKpGXxscez8G6WYhU=; b=ru/vT7nR+vhTVArls3h7nA/XcViPTZ6ZztnBR5Qi8+JCfUGXzdYDv3qrJJrKOowtYB 7/2eA3XtwiKUBL9Eyb7mF7+Rlm8GKN4HcEt4B8GGVLoO2P0sFK7VTIQe8UDyI5UzUEtv 9nNsRYGl6LPqo3rq0lgVtS3K2m9JCy0fpx6tA= 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=vbi4jVEK2g0DjUwfLrHUvMnEAyCFWFer36Uv9lTf7S8BpcYONPN2Qvt7Ky1C7n3xzr EjcKJzx7xrpTIFo2VxP4cwzwFsBZ3q3xcLdd6wxDHeBCenNqzkGaMGB9G8LU52Na0ftn U1TFu+6Q50WCqbkhZ4U75cBDrWYPc1hg8of4Y= Received: by 10.223.86.135 with SMTP id s7mr4449254fal.70.1296370249375; Sat, 29 Jan 2011 22:50:49 -0800 (PST) MIME-Version: 1.0 Received: by 10.223.124.200 with HTTP; Sat, 29 Jan 2011 22:50:29 -0800 (PST) In-Reply-To: References: From: Harsh J Date: Sun, 30 Jan 2011 12:20:29 +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 X-Virus-Checked: Checked by ClamAV on apache.org 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