hbase复制和快照命令之间的区别 [英] diffrence between hbase copy and snapshot command

查看:254
本文介绍了hbase复制和快照命令之间的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在hbase中有一个包含大量数据的表,所以我希望在这种情况下使用表的背面,这是很好的

1--复制命令以获取表格的备份
2 - 获取该表格的快照



还请解释快照的内部机制是简单的重命名表?



问候
Amit

解决方案

快照最好。




  • HBase快照允许您在不影响Region Server的情况下拍摄表的快照。快照,克隆和恢复操作不涉及数据复制。另外,将快照导出到另一个群集不会影响Region Server。



在版本0.94.6之前,唯一的备份或克隆表的方法是使用CopyTable / ExportTable,或者在禁用表后复制HDFS中的所有hfiles。这些方法的缺点是可能会降低区域服务器的性能(复制/导出表),或者您需要禁用表,这意味着无法读取或写入;这通常是不可接受的。





另请参阅快照+和+可重复+读取+ HBase +表格

Snapshot Internals


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

解决方案

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

这篇关于hbase复制和快照命令之间的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆