问题
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