hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Shelukhin (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-7353) [shell] have list and list_snapshot return jruby string arrays.
Date Sat, 15 Dec 2012 00:52:13 GMT

    [ https://issues.apache.org/jira/browse/HBASE-7353?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13532851#comment-13532851
] 

Sergey Shelukhin commented on HBASE-7353:
-----------------------------------------

+1, looks good to me
                
> [shell] have list and list_snapshot return jruby string arrays.
> ---------------------------------------------------------------
>
>                 Key: HBASE-7353
>                 URL: https://issues.apache.org/jira/browse/HBASE-7353
>             Project: HBase
>          Issue Type: Sub-task
>          Components: Client, shell
>    Affects Versions: hbase-6055
>            Reporter: Jonathan Hsieh
>            Assignee: Jonathan Hsieh
>         Attachments: hbase-7353.patch
>
>
> It is really convenient to allow comamnds like list and list_snapshots return a jruby
array of values in the hbase shell.
> it allows for nice things like this:
> {code}
> # drop all tables starting with foo
> list("foo.*").map { |t| disable t; drop t }
> {code}
> or 
> {code}
> # clone all tables that start with bar
> list_snapshots("bar.*").map { |s| clone_snapshot s, s + "-table"}
> {code}

--
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

Mime
View raw message