-Re: Debugging an aggregator
Benson Margulies 2012-02-10, 20:04
On Thu, Feb 9, 2012 at 6:56 PM, Keith Turner <[EMAIL PROTECTED]> wrote:
> You can use Mock Accumulo to test iterators and aggregators in unit test.
> Look at org.apache.accumulo.core.client.mock.MockConnectorTest.testAggregation()
> in src/core/src/test/java/ for an example.
> Mock Accumulo was first introduced in 1.3. Its a little rough around
> the edges in 1.3, its more mature in 1.4. I think it will meet your
> needs, but let us know if you run into issues.
> If you are writing code that runs against a live instance, you can use
> connector.tableOperations() to setup and configure Aggregators.
> On Thu, Feb 9, 2012 at 5:55 PM, Benson Margulies <[EMAIL PROTECTED]> wrote:
>> I've been running my first few trivial programs by just running them
>> in Eclipse. (They are just writing.) It seems to me that I'll never
>> get away with this once I create an aggregator. What's the drill?
Once I have it debugged in mock, then what? Presumably it has to get
into the classpath of my accumulo processes. How's that organized?