hadoop-mapreduce-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fan wei fang <eagleeye8...@gmail.com>
Subject Re: passing dependencies to my Mapper
Date Sat, 05 Sep 2009 04:49:07 GMT
Dear Lowell,
I have heard about JVM reuse. Hope this can help.
Fang.

On Sat, Sep 5, 2009 at 4:25 AM, Lowell Kirsh <lowell@carbonfive.com> wrote:

> I have a Mapper class which needs access to several dependencies (such as a
> db). It seems that because the framework is new'ing up instances of my
> Mapper class, I have little control over its lifecycle. Up to now, I've been
> setting them up as static fields in that class, which is not ideal. Is there
> a better way to inject my dependencies?
> Thanks,
> Lowell
>

Mime
View raw message