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