-Fwd: Re: setiter returns error, but custom iterator runs via scanner client?
And then I didn't reply-list :D
-------- Original Message --------
Subject: Re: setiter returns error, but custom iterator runs via scanner
Date: Thu, 28 Feb 2013 22:28:27 -0500
From: Josh Elser <[EMAIL PROTECTED]>
To: David Arsenault <[EMAIL PROTECTED]>
I created https://issues.apache.org/jira/browse/ACCUMULO-1136 to track
I put up a patch with some additions to the user manual to address the
differences in using setiter and config. Please feel free to use the
ticket to specifically track the additions where you see fit. If there
are areas you are still unclear about, I'd be more than happy to help
out in addition to also helping with any writing.
Thanks for helping out!
On 02/28/2013 08:08 AM, David Arsenault wrote:
> In terms of the documentation, it would be great to augment the Table
> Configuration section of the user manual. Iterators are central to
> Accumulo's functionality so it would aid users to see an entire
> iterator life cycle:
> * Develop iterator by extending...
> * Install iterator as jar to lib/ext
> * Run as in a client (fragment is shown)
> * Set via shell (setiter, config for options)
> There are hints to using config for existing filters but not how to
> configure custom iterator code. For example, installing custom iterator
> code for non-scan contexts is unclear.
> With a little help on the internals to get this right, I am happy to
> contribute writing and example code fragments.
> On Wednesday, February 27, 2013, Josh Elser wrote:
> Do you mind if I forward this back to the firstname.lastname@example.org list for others
> to benefit from?
> Also, is there a relevant place you looked in the documentation that
> you would've expected to find something like this? Where/when we
> lack documentation, we like to make a conscious effort towards
> improving. It's difficult at times when you understand the subject
> matter to know the best place to document something. Any feedback
> you might have would be greatly appreciated.
> - Josh
> On 02/27/2013 09:41 PM, David Arsenault wrote:
> Got it! Yes, this iterator does have some options that require
> setting. I'll implement the OptionDescriber as you suggest. This
> explains why it works in scanner code where the options are set.
> The syntax for `config` with a class where not all that clear to me.
> The manual is a bit confusing w/r/t how you specify the iterator
> then set the options.
> Thanks for the help. I really appreciate it.
> On Wed, Feb 27, 2013 at 8:33 PM, Josh Elser
> <[EMAIL PROTECTED]> wrote:
> If you want to use the `setiter` command, have your
> implementation also implement o.a.a.c.i.OptionDescriber.
> 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