hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Kerzner <markkerz...@gmail.com>
Subject Re: do you need to call super in Mapper.Context.setup()?
Date Fri, 17 Sep 2010 14:40:12 GMT
Thank you for the advice and for teaching the common expression

Mark

On Fri, Sep 17, 2010 at 9:29 AM, David Rosenstrauch <darose@darose.net>wrote:

> On 09/16/2010 11:38 PM, Mark Kerzner wrote:
>
>> Hi,
>>
>> any need for this,
>>
>> protected void setup(Mapper.Context context) throws IOException,
>> InterruptedException {
>>         super.setup(context); // TODO - does this need to be done?
>>         this.context = context;
>> }
>>
>> Thank you,
>> Mark
>>
>
> "Use the source Luke".
>
> If you take a look through the source code, you'll see the answer is no.
>
> public class Mapper<KEYIN, VALUEIN, KEYOUT, VALUEOUT> {
> ...
>  /**
>   * Called once at the beginning of the task.
>   */
>  protected void setup(Context context
>                       ) throws IOException, InterruptedException {
>    // NOTHING
>  }
> ...
> }
>
> DR
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message