Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]

Support Questions

Find answers, ask questions, and share your expertise
Announcements
Share your experience with Cloudera on G2 and get a $25 Amazon Gift card.
Hi, I'm CLEO! Something exciting is coming to the Community. Stay Tuned!

HBase changing schema - adding a column / column familes

avatar
New Member

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

1 ACCEPTED SOLUTION

avatar
Contributor

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! 

View solution in original post

2 REPLIES 2

avatar
Contributor

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! 

avatar
New Member

Ok, thank ypu !