@guodong
2020-11-08T10:55:38.000000Z
字数 804
阅读 587
HBase
进入HBase客户端
hbase shell
snapshot '表名','快照名'
hbase> snapshot 'packet','packet_snapshot'
hbase> list_snapshots
hbase org.apache.hadoop.hbase.snapshot.ExportSnapshot -snapshot 快照名 -copy-to hdfs://当前namenode活跃节点:8020/hbase
hbase org.apache.hadoop.hbase.snapshot.ExportSnapshot -snapshot test_snapshot2 -copy-to hdfs://activenamenode:8020/hbase
hbase> list_snapshots
hbsse> clone_snapshot 'snapshotName','newTableName' (此名字不能与packet相同)
hbase> delete_snapshot 'snapshotName'