accumulo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Billie Rinaldi (JIRA)" <>
Subject [jira] [Commented] (ACCUMULO-589) Unable to set system properties in shell
Date Fri, 11 May 2012 21:27:49 GMT


Billie Rinaldi commented on ACCUMULO-589:

How do people feel about stability of shell command usage?  I am trying to decide what to
do about this bug.  The problem is that config used the presence of the -t tableName flag
to determine whether to use a table context or a system context.  Thus, config could not be
made consistent with the other commands in terms of sensing the current table context and
using that.  What I would really like to do is change config to use the new -a (-add) | -d
(-delete) | -l (-list) set of flags (see the new ConstraintCommand), and then have -t <tableName>
| -s (-system) flags to indicate the context (as grant and revoke do).  This sounds like it
could make users unhappy, however.  I'll call this -a | -d | -l style of command an ADL command.
 I hope to transition more of the commands to ADL options, anyway.

Another option for config would be to only allow the user to set system properties when outside
of a table context.  This would still change the behavior, but less radically.  A third option
would be to revert to the old config, deprecate it, and create a new ADL command with a different
> Unable to set system properties in shell
> ----------------------------------------
>                 Key: ACCUMULO-589
>                 URL:
>             Project: Accumulo
>          Issue Type: Bug
>          Components: client
>            Reporter: Keith Turner
>            Assignee: Billie Rinaldi
>             Fix For: 1.5.0
> {noformat}
> root@test15> config -s master.tablet.balancer=org.apache.accumulo.server.master.balancer.TableLoadBalancer
> 11 12:35:08,206 [shell.Shell] ERROR: java.lang.IllegalStateException: Not in a table
context. Please use 'table <tableName>' to switch to a table, or use '-t' to specify
a table if option is available.
> root@test15> table
> table              tablepermissions   tables
> root@test15> table !METADATA
> root@test15 !METADATA> config -s master.tablet.balancer=org.apache.accumulo.server.master.balancer.TableLoadBalancer
> 11 12:35:31,581 [shell.Shell] ERROR: org.apache.accumulo.core.util.BadArgumentException:
Invalid per-table property. near index 10
> config -s master.tablet.balancer=org.apache.accumulo.server.master.balancer.TableLoadBalancer
> {noformat}

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message