Details
-
Sub-task
-
Status: Closed
-
Major
-
Resolution: Fixed
-
hbase-6055
-
None
-
Reviewed
-
In the HBase shell, the 'list' command and the 'list_snapshot' commands now return a jruby array of strings that can be bound to jruby variables and used for scripting purposes.
Description
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:
# drop all tables starting with foo
list("foo.*").map { |t| disable t; drop t }
or
# clone all tables that start with bar list_snapshots("bar.*").map { |s| clone_snapshot s, s + "-table"}
Attachments
Attachments
Issue Links
- depends upon
-
HBASE-6353 Snapshots shell
- Closed
-
HBASE-6055 Offline Snapshots in HBase 0.96
- Closed
- is depended upon by
-
HBASE-7368 Add shell tricks documentation to the refguide
- Closed