hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrzej Bialecki ...@getopt.org>
Subject Getting job ID from within a running task
Date Wed, 13 Sep 2006 14:07:32 GMT
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



Mime
View raw message