|| at Feb 3, 2011 at 4:10 am
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
On Wed, Feb 2, 2011 at 2:57 PM, Giridhar Addepalli
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 ?