Return-Path: Delivered-To: apmail-lucene-hadoop-dev-archive@locus.apache.org Received: (qmail 92868 invoked from network); 13 Sep 2006 14:08:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 13 Sep 2006 14:08:04 -0000 Received: (qmail 93448 invoked by uid 500); 13 Sep 2006 14:08:03 -0000 Delivered-To: apmail-lucene-hadoop-dev-archive@lucene.apache.org Received: (qmail 93428 invoked by uid 500); 13 Sep 2006 14:08:03 -0000 Mailing-List: contact hadoop-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hadoop-dev@lucene.apache.org Delivered-To: mailing list hadoop-dev@lucene.apache.org Received: (qmail 93418 invoked by uid 99); 13 Sep 2006 14:08:03 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Sep 2006 07:08:03 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [69.44.16.11] (HELO getopt.org) (69.44.16.11) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Sep 2006 07:07:51 -0700 Received: from [192.168.0.252] (75-mo3-2.acn.waw.pl [62.121.105.75]) (authenticated) by getopt.org (8.11.6/8.11.6) with ESMTP id k8DE7Wo25210 for ; Wed, 13 Sep 2006 09:07:33 -0500 Message-ID: <450810A4.4050403@getopt.org> Date: Wed, 13 Sep 2006 16:07:32 +0200 From: Andrzej Bialecki User-Agent: Thunderbird 1.5.0.5 (Windows/20060719) MIME-Version: 1.0 To: hadoop-dev@lucene.apache.org Subject: Getting job ID from within a running task Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi, I need to be able to retrieve the current job id from within map or reduce tasks. I looked here and there, but I wasn't able to find any way to do this in the API ... Basically, I want to be able to do something like this: class XXX implements Mapper { public void configure(Configuration conf) { String jobId = ... ? String taskId = ... ? } } And similarly: class XXX implements Reducer { public void configure(Configuration conf) { String jobId = ... ? String taskId = ... ? } } Is this possible? -- Best regards, Andrzej Bialecki <>< ___. ___ ___ ___ _ _ __________________________________ [__ || __|__/|__||\/| Information Retrieval, Semantic Web ___|||__|| \| || | Embedded Unix, System Integration http://www.sigram.com Contact: info at sigram dot com