clone_snapshot

Definition

Creates a new table by cloning the specified snapshot. The subsequent writing on the newly created table will not influence the snapshot data.

Usage

clone_snapshot '<snapshot_name>',
               '[<namespace_name>:][table_name]'[,
               {RESTORE_ACL => <restore_acl_value>}]
Arguments
Parameter Description

snapshot_name

A snapshot name

namespace_name

A namespace name

table_name

A table name

restore_acl_value

A boolean field that defines whether or not to restore ACL

Examples

hbase(main):044:0> create 'temp10', 'cf1'
Created table temp10
Took 1.3420 seconds
=> Hbase::Table - temp10
hbase(main):045:0> clone_snapshot 'snap1', 'table10'
Took 1.2917 seconds
hbase(main):046:0> scan 'table10'
ROW                   COLUMN+CELL
 r1                   column=cf1:c1, timestamp=1637434534105, value=value3
 r1                   column=cf1:c2, timestamp=1637434285911, value=value4
 r2                   column=cf1:c1, timestamp=1637434293457, value=value5
2 row(s)
Took 0.0304 seconds
Found a mistake? Seleсt text and press Ctrl+Enter to report it