list_table_snapshots

Definition

Returns snapshots of the specified table. Allows to use regular expressions for defining a table name and — optionally — a snapshot name.

Usage

list_table_snapshots '<table_regex>'[, '<snapshot_regex>']
Arguments
Parameter Description

table_regex

A regular expression for searching tables

snapshot_regex

A regular expression for searching snapshots

Examples

Without using regular expressions

hbase(main):015:0> list_table_snapshots 'temp1'
SNAPSHOT              TABLE + CREATION TIME
 snap1                temp1 (2021-11-24 06:31:27 UTC)
1 row(s)
Took 0.0285 seconds
=> ["snap1"]

Using regular expressions

hbase(main):022:0> list_table_snapshots '.*', 'snap.*'
SNAPSHOT              TABLE + CREATION TIME
 snap1                temp1 (2021-11-24 06:31:27 UTC)
 snap2                ns1:temp2 (2021-11-24 06:32:21 UTC)
2 row(s)
Took 0.0180 seconds
=> ["snap1", "snap2"]
Found a mistake? Seleсt text and press Ctrl+Enter to report it