Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Threaded View
Accumulo >> mail # user >> Debugging an aggregator


Copy link to this message
-
Re: Debugging an aggregator
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?
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB