HBase 快照操作



1.配置hbase-site.xml 
<property>
    <name>hbase.snapshot.enabled</name>
    <value>true</value>
  </property>
2.创建快照
 hbase> snapshot 'myTable', 'myTableSnapshot-122112'
hbase>list_snapshots
3.删除快照
delete_snapshot 'myTableSnapshot-122112'

4.克隆快照
hbase> clone_snapshot 'myTableSnapshot-122112', 'myNewTestTable'
5.restore快照
  hbase> disable 'myTable'
    hbase> restore_snapshot 'myTableSnapshot-122112'
6.集群之间拷贝
hbase class org.apache.hadoop.hbase.snapshot.tool.ExportSnapshot -snapshot MySnapshot -copy-to hdfs:///srv2:8082/hbase -mappers 16

你可能感兴趣的:(hbase)