You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Ricky Saltzer (JIRA)" <ji...@apache.org> on 2012/10/11 00:37:02 UTC
[jira] [Commented] (HBASE-2711) allow hbase shell command to
operate on group of tables
[ https://issues.apache.org/jira/browse/HBASE-2711?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13473625#comment-13473625 ]
Ricky Saltzer commented on HBASE-2711:
--------------------------------------
Hey Ted -
I believe you can already to this with the _all functions, which allow you to pass in a regex. Which means you can get pretty fancy with things like number ranges, etc. See a simple example below
My tables
{noformat}
TABLE
ERROR-111
ERROR-112
ERROR-113
ERROR-333
ERROR-334
{noformat}
Let's say I want to disable ERROR-333 and ERROR-334
{noformat}
hbase(main):003:0> disable_all 'ERROR-3.*'
ERROR-333
ERROR-334
Disable the above 2 tables (y/n)?
y
2 tables successfully disabled
{noformat}
> allow hbase shell command to operate on group of tables
> -------------------------------------------------------
>
> Key: HBASE-2711
> URL: https://issues.apache.org/jira/browse/HBASE-2711
> Project: HBase
> Issue Type: Improvement
> Components: shell
> Affects Versions: 0.20.4
> Reporter: Ted Yu
>
> Suppose I have the following 20 tables in HBase:
> ERRORS-1276213362068-1
> ERRORS-1276213362068-2
> ERRORS-1276213362068-3
> ...
> ERRORS-1276213362068-20
> HBase shell commands, such as disable and drop, should be able to operate on group of tables which are identified by prefix or suffix.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira