1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
| hbase org.apache.hadoop.hbase.snapshot.ExportSnapshot --help usage: hbase org.apache.hadoop.hbase.snapshot.ExportSnapshot <options> Options: --snapshot <arg> Snapshot to restore. --copy-to <arg> Remote destination hdfs:// --copy-from <arg> Input folder hdfs:// (default hbase.rootdir) --target <arg> Target name for the snapshot. --no-checksum-verify Do not verify checksum, use name+length only. --no-target-verify Do not verify the integrity of the exported snapshot. --no-source-verify Do not verify the source of the snapshot. --overwrite Rewrite the snapshot manifest if already exists. --chuser <arg> Change the owner of the files to the specified one. --chgroup <arg> Change the group of the files to the specified one. --chmod <arg> Change the permission of the files to the specified one. --mappers <arg> Number of mappers to use during the copy (mapreduce.job.maps). --bandwidth <arg> Limit bandwidth to this value in MB/second. --reset-ttl Do not copy TTL for the snapshot Examples: hbase snapshot export \ --snapshot MySnapshot --copy-to hdfs://srv2:8082/hbase \ --chuser MyUser --chgroup MyGroup --chmod 700 --mappers 16
hbase snapshot export \ --snapshot MySnapshot --copy-from hdfs://srv2:8082/hbase \ --copy-to hdfs://srv1:50070/hbase
|