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.

Search Discussions

  • Harsh J 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
    configure().

    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
    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
    www.harshj.com

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupmapreduce-user @
categorieshadoop
postedFeb 2, '11 at 9:28a
activeFeb 3, '11 at 4:10a
posts2
users2
websitehadoop.apache.org...
irc#hadoop

2 users in discussion

Harsh J: 1 post Giridhar Addepalli: 1 post

People

Translate

site design / logo © 2022 Grokbase