hadoop-mapreduce-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Harsh J <qwertyman...@gmail.com>
Subject Re: is configure( ) method of mapred api same as setup( ) method of mapreduce api
Date Thu, 03 Feb 2011 04:09:20 GMT
Yes, configure() and setup() are very similar in functionality. What
you had to do in configure() of the stable API, you'll have to do so
in the setup() of the newer replacement.

In some ways, the configure() is more old-fashioned than setup(). A
setup call occurs when the Mapper is run, while configure() used to
occur when the Mapper class was instantiated (via ReflectionUtils).
Thus, you get a full Context object in setup (which was absent in
configure()). Thats to say a setup() may be more useful than

But I've always felt comfortable using the MapRunner/Mapper.run()
techniques to run the Mapper. That way, you're in good control of
pre/post stuff.

On Wed, Feb 2, 2011 at 2:57 PM, Giridhar Addepalli
<giridhar.addepalli@komli.com> wrote:
> Hi,
> setup( ),  method present in mapred api, is called once at the start of
> each map/reduce task.
> Is it the same with configure( ) method present in mapreduce api ?
> Thanks,
> Giridhar.

Harsh J

View raw message