1.复制表结构CREATETABLEdns_records1SELECT*FROMdns_recordsWHERE1=2或者CREATETABLEdns_records2LIKEdns_records注意:前者不能复制表的主键和索引2.跨库复制表结构CREATETABLEdbopv1.dns_records3LIKEdbopv2.dns_records或者CREATETABLEdbopv1.dns_records4SELECT*FROMdbopv..
分类:
其他好文 时间:
2015-06-03 19:55:02
阅读次数:
105
由于运营数据太大,另外避免影响正常访问,所以需要临时拷贝部分数据到临时表中. bin/hbase org.apache.hadoop.hbase.mapreduce.CopyTable [--starttime=X] [--endtime=Y] [--new.name=NEW] [--peer.ad...
分类:
其他好文 时间:
2014-10-30 13:12:41
阅读次数:
216
CopyTable is a simple Apache HBase utility that, unsurprisingly, can be used for copying individual tables within an HBase cluster or from one HBase cluster to another. In this blog post, we’ll talk a...
分类:
其他好文 时间:
2014-10-10 11:34:01
阅读次数:
246
文章《HBase备份之导入导出》介绍了使用HBase的自带工具Export和Import来实现在主集群和从集群之间拷贝表的目的。本篇介绍一种相比导入导出而言,更快速的一种备份办法。即ExportSnapshot。
1、ExportSnapshot
和Export类似,ExportSnapshot也是使用MapReduce方式来进行表的拷贝。不过和Export不同,ExportSnapsho...
分类:
其他好文 时间:
2014-08-13 18:55:47
阅读次数:
287