Hbase 表重命名--利用HBase Snapshots实现表重命名操作,hbasesnapshots
支持hbase 0.94.x
1、开启HBase Snapshots
<property>
<name>hbase.snapshot.enabled</name>
<value>true</value>
</property>
2、重命名表
hbase shell> snapshot 'tablea', 'tableaSnapshot'
hbase shell> clone_snapshot 'tableaSnapshot', 'tablea_newname'
hbase shell> delete_snapshot 'tableaSnapshot'
hbase shell> drop 'tablea'
本站文章为和通数据库网友分享或者投稿,欢迎任何形式的转载,但请务必注明出处.
同时文章内容如有侵犯了您的权益,请联系QQ:970679559,我们会在尽快处理。