diffrence between hbase copy and snapshot command

2019-07-25 13:56发布

I have a table in hbase which contain a huge amount of data I want to take the back of the table so in this situation which is good

1--Copy command to take the back up of the table 2--Take the snapshot of that table

And also please explain the internal mechanism of snapshot Is it simply renaming the table?

Regards Amit

标签: hadoop hbase
1条回答
Melony?
2楼-- · 2019-07-25 14:19

snapshot is best.

  • HBase Snapshots allow you to take a snapshot of a table without too much impact on Region Servers. Snapshot, Clone and restore operations don't involve data copying. Also, Exporting the snapshot to another cluster doesn't have impact on the Region Servers.

Prior to version 0.94.6, the only way to backup or to clone a table is to use CopyTable/ExportTable, or to copy all the hfiles in HDFS after disabling the table. The disadvantages of these methods are that you can degrade region server performance (Copy/Export Table) or you need to disable the table, that means no reads or writes; and this is usually unacceptable.

Also, see Snapshots+and+Repeatable+reads+for+HBase+Tables

Snapshot Internals

查看更多
登录 后发表回答