How to rename a column family in HBase using HBase Shell

ⅰ亾dé卋堺 提交于 2019-12-11 01:24:45

问题


In the HBase shell, it's possible to delete a column family using:

alter 'tablename', NAME => 'familyname', METHOD => 'delete'

It's also possible to create a new column family using:

alter 'tablename', NAME => 'newfamilyname'

So it's possible to delete a column family and create a new one, but if I have existing data, deleting the column family deletes the data within that family as well.

How do I rename an HBase column family in an existing table without losing the existing data?

来源:https://stackoverflow.com/questions/35418617/how-to-rename-a-column-family-in-hbase-using-hbase-shell

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!