欢迎投稿

今日深度:

hbase 更改表名,hbase更改表

hbase 更改表名,hbase更改表


    因为hbase中没有rename命令,所以更改表名比较复杂。重命名主要通过hbase的快照功能。

1.停止表继续插入

 hbase shell>disable 'tableName'

2。制作快照
hbase shell> snapshot 'tableName', 'tableSnapshot'

3.克隆快照为新的名字
hbase shell> clone_snapshot 'tableSnapshot', 'newTableName'

4.删除快照
hbase shell> delete_snapshot 'tableSnapshot'

5.删除原来表
hbase shell> drop 'tableName'



www.htsjk.Com true http://www.htsjk.com/hbase/32535.html NewsArticle hbase 更改表名,hbase更改表     因为hbase中没有rename命令,所以更改表名比较复杂。重命名主要通过hbase的快照功能。 1.停止表继续插入  hbase shelldisable 'tableName' 2。制作快照 hbase shel...
相关文章
    暂无相关文章
评论暂时关闭