- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
HBase changing schema - adding a column / column familes
- Labels:
-
Apache HBase
Created on
02-18-2020
11:29 AM
- last edited on
02-18-2020
12:01 PM
by
ask_bill_brooks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I have large HBase table and would like to add a new column family with 1 column.
I know about "alter" which adds the to schema to all regions.
But it really means adding schema to region ?
Is it only change schema or rewrite data ?
Regards,
Cezary
Created 02-26-2020 11:29 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Cezary,
hbase> alter helps to add/modify/delete column family.
But it's not possible to rename existing column family and it will not re-write any data.
It is advisable to disable table and perform >alter and enable the table.
Also, if you modify properties like TTL, versions it will applicable for new writes and for existing data it will take effect only after >major_compact <table>
Hope that helps!
Created 02-26-2020 11:29 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Cezary,
hbase> alter helps to add/modify/delete column family.
But it's not possible to rename existing column family and it will not re-write any data.
It is advisable to disable table and perform >alter and enable the table.
Also, if you modify properties like TTL, versions it will applicable for new writes and for existing data it will take effect only after >major_compact <table>
Hope that helps!
Created 02-27-2020 08:05 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Ok, thank ypu !
