I see, Bill, thank you. But I think I need something different. I am processing line after line, and for some elements I extract from each line, I am doing HBase lookups. So I need an open connection to stay open during the life of a mapper.
Thank you, Mark On Tue, Mar 6, 2012 at 7:14 PM, Bill Graham <[email protected]> wrote: > Have you checked out HBaseStorage? > > > http://pig.apache.org/docs/r0.9.1/api/org/apache/pig/backend/hadoop/hbase/HBaseStorage.html > > On Tue, Mar 6, 2012 at 5:02 PM, Mark Kerzner <[email protected] > >wrote: > > > Hi, > > > > I need to initialize the HBase connection, which I normally do in > > configure() in the Mapper, and then my mapper uses it. How do I do it in > > Pig? > > > > I am ready to define a UDF that will return a handle, but is it a best > > practice? > > > > Thank you, > > Mark > > > > > > -- > *Note that I'm no longer using my Yahoo! email address. Please email me at > [email protected] going forward.* >
