You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@accumulo.apache.org by "Eric Newton (Created) (JIRA)" <ji...@apache.org> on 2011/11/08 21:11:51 UTC

[jira] [Created] (ACCUMULO-129) shell requires iterators to implement OptionDescriber

shell requires iterators to implement OptionDescriber
-----------------------------------------------------

                 Key: ACCUMULO-129
                 URL: https://issues.apache.org/jira/browse/ACCUMULO-129
             Project: Accumulo
          Issue Type: Improvement
          Components: client
    Affects Versions: 1.3.5
            Reporter: Eric Newton
            Assignee: Eric Newton
            Priority: Minor
             Fix For: 1.5.0


Jim Klucar writes:
{quote}
Currently the org.apache.accumulo.core.util.shell.commands.SetIterCommand
requires that the iterator implement the OptionDescriber interface (line
128). This prevents using some useful iterators at the shell, for instance
the DebugIterator. A nice way to learn how iterators work is to set this
iterator, use "debug on" at the shell and start scanning different ways.

There are two possible solutions that I see. One is to make all iterators
delivered with Accumulo implement OptionDescriber, and document this shell
quirk, or to use reflection in the shell code to see if the iterator class
implements OptionDescriber, otherwise just ensure it implements
SortedKeyValueIterator.

{quote}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (ACCUMULO-129) shell requires iterators to implement OptionDescriber

Posted by "Billie Rinaldi (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/ACCUMULO-129?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13154756#comment-13154756 ] 

Billie Rinaldi commented on ACCUMULO-129:
-----------------------------------------

Based on discussion on the dev list, I plan to resolve this issue by giving a more informative error message when a user tries to configure an iterator that doesn't implement OptionDescriber using the "setiter" command.  The user will be directed to use the "config" command instead.
                
> shell requires iterators to implement OptionDescriber
> -----------------------------------------------------
>
>                 Key: ACCUMULO-129
>                 URL: https://issues.apache.org/jira/browse/ACCUMULO-129
>             Project: Accumulo
>          Issue Type: Improvement
>          Components: client
>    Affects Versions: 1.3.5
>            Reporter: Eric Newton
>            Assignee: Eric Newton
>            Priority: Minor
>             Fix For: 1.4.0
>
>
> Jim Klucar writes:
> {quote}
> Currently the org.apache.accumulo.core.util.shell.commands.SetIterCommand
> requires that the iterator implement the OptionDescriber interface (line
> 128). This prevents using some useful iterators at the shell, for instance
> the DebugIterator. A nice way to learn how iterators work is to set this
> iterator, use "debug on" at the shell and start scanning different ways.
> There are two possible solutions that I see. One is to make all iterators
> delivered with Accumulo implement OptionDescriber, and document this shell
> quirk, or to use reflection in the shell code to see if the iterator class
> implements OptionDescriber, otherwise just ensure it implements
> SortedKeyValueIterator.
> {quote}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (ACCUMULO-129) shell requires iterators to implement OptionDescriber

Posted by "Billie Rinaldi (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/ACCUMULO-129?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Billie Rinaldi resolved ACCUMULO-129.
-------------------------------------

    Resolution: Fixed
    
> shell requires iterators to implement OptionDescriber
> -----------------------------------------------------
>
>                 Key: ACCUMULO-129
>                 URL: https://issues.apache.org/jira/browse/ACCUMULO-129
>             Project: Accumulo
>          Issue Type: Improvement
>          Components: client
>    Affects Versions: 1.3.5
>            Reporter: Eric Newton
>            Assignee: Billie Rinaldi
>            Priority: Minor
>             Fix For: 1.4.0
>
>
> Jim Klucar writes:
> {quote}
> Currently the org.apache.accumulo.core.util.shell.commands.SetIterCommand
> requires that the iterator implement the OptionDescriber interface (line
> 128). This prevents using some useful iterators at the shell, for instance
> the DebugIterator. A nice way to learn how iterators work is to set this
> iterator, use "debug on" at the shell and start scanning different ways.
> There are two possible solutions that I see. One is to make all iterators
> delivered with Accumulo implement OptionDescriber, and document this shell
> quirk, or to use reflection in the shell code to see if the iterator class
> implements OptionDescriber, otherwise just ensure it implements
> SortedKeyValueIterator.
> {quote}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Assigned] (ACCUMULO-129) shell requires iterators to implement OptionDescriber

Posted by "Billie Rinaldi (Assigned) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/ACCUMULO-129?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Billie Rinaldi reassigned ACCUMULO-129:
---------------------------------------

    Assignee: Billie Rinaldi  (was: Eric Newton)
    
> shell requires iterators to implement OptionDescriber
> -----------------------------------------------------
>
>                 Key: ACCUMULO-129
>                 URL: https://issues.apache.org/jira/browse/ACCUMULO-129
>             Project: Accumulo
>          Issue Type: Improvement
>          Components: client
>    Affects Versions: 1.3.5
>            Reporter: Eric Newton
>            Assignee: Billie Rinaldi
>            Priority: Minor
>             Fix For: 1.4.0
>
>
> Jim Klucar writes:
> {quote}
> Currently the org.apache.accumulo.core.util.shell.commands.SetIterCommand
> requires that the iterator implement the OptionDescriber interface (line
> 128). This prevents using some useful iterators at the shell, for instance
> the DebugIterator. A nice way to learn how iterators work is to set this
> iterator, use "debug on" at the shell and start scanning different ways.
> There are two possible solutions that I see. One is to make all iterators
> delivered with Accumulo implement OptionDescriber, and document this shell
> quirk, or to use reflection in the shell code to see if the iterator class
> implements OptionDescriber, otherwise just ensure it implements
> SortedKeyValueIterator.
> {quote}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (ACCUMULO-129) shell requires iterators to implement OptionDescriber

Posted by "Billie Rinaldi (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/ACCUMULO-129?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Billie Rinaldi updated ACCUMULO-129:
------------------------------------

    Fix Version/s:     (was: 1.5.0)
                   1.4.0
    
> shell requires iterators to implement OptionDescriber
> -----------------------------------------------------
>
>                 Key: ACCUMULO-129
>                 URL: https://issues.apache.org/jira/browse/ACCUMULO-129
>             Project: Accumulo
>          Issue Type: Improvement
>          Components: client
>    Affects Versions: 1.3.5
>            Reporter: Eric Newton
>            Assignee: Billie Rinaldi
>            Priority: Minor
>             Fix For: 1.4.0
>
>
> Jim Klucar writes:
> {quote}
> Currently the org.apache.accumulo.core.util.shell.commands.SetIterCommand
> requires that the iterator implement the OptionDescriber interface (line
> 128). This prevents using some useful iterators at the shell, for instance
> the DebugIterator. A nice way to learn how iterators work is to set this
> iterator, use "debug on" at the shell and start scanning different ways.
> There are two possible solutions that I see. One is to make all iterators
> delivered with Accumulo implement OptionDescriber, and document this shell
> quirk, or to use reflection in the shell code to see if the iterator class
> implements OptionDescriber, otherwise just ensure it implements
> SortedKeyValueIterator.
> {quote}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira