accumulo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Josh Elser <>
Subject Re: setiter returns error, but custom iterator runs via scanner client?
Date Thu, 28 Feb 2013 01:33:04 GMT

If you want to use the `setiter` command, have your 
SortedKeyValueIterator implementation also implement 

This will force you to implement a method which describes any 
configurable options on your SKVI, describeOptions(), in addition to 
configuring your SKVI with provided a Map<String,String> of options, 

I believe `setiter` is telling you about `config` as you could manually 
set the your SKVI at a given scope (scan, minc, majc) without the 
automatic configuration that the OptionDescriber implementation provides 
you with the `setiter` command.

- Josh

On 02/27/2013 07:50 PM, David Arsenault wrote:
> Hi there. Hoping to get some pointers on what might be the issue with
> setiter here ...
> I've got a custom iterator built and working fine. The jar is in the
> lib/ext directory and is happy when called from a scanner client.
> However, when I attempt to attach the iterator to a table via the
> shell bad voodoo happens.
> somebody@accumulo1 INtable> setiter -t INtable -scan -p 5 -n OptsIter
> -class
> 2013-02-27 19:30:00,974 [shell.Shell] ERROR:
> Command
> could not be initialized (Unable to load
> as type org.apache.accumulo.core.iterators.OptionDescriber; configure
> with 'config' instead).
> My class implements SortedKeyValueIterator<Key,Value>.
> I've searched extensively and covered the manual end-to-end with no
> luck. Any hints would be much appreciated and save me more time and
> pain.
> Thank you.
> David

View raw message