accumulo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher <>
Subject Re: Access to connector inside a Mapper class?
Date Sat, 26 Jan 2013 19:10:00 GMT
If you extend AccumuloInputFormat to make the required protected methods
public, you could do:

with your TaskAttemptContext in the mapper/reducer.

Or, you could store your own configuration options to re-construct a Connector
when you set up your job (you could re-use those configuration variables we
set, but that's... relying on implementation details that may change).

Christopher L Tubbs II

On Wed, Jan 23, 2013 at 1:50 PM, Mike Hugo <> wrote:

> Is there a way to get access to the underlying connector being used by the
> Accumulo Input Format inside the map method of a Mapper class?  In certain
> scenarios, I need to be able to look up a value from a different table
> while iterating over a set of keys in the mapper class.  Should I just
> create a new connector instance?
> Mike

View raw message