Reputation: 799
Can anyone please tell me the possible implications that may affect the table structure if use "alter" command without disabling the table first?
To my knowledge disabling a table means closing all the connections to the table. What peculiarities may take place if I use alter without disabling the table?
I am learning HBase
Please help!!
Thankyou
Upvotes: 3
Views: 598
Reputation: 3132
The answer depends on HBase configuration. If parameter "hbase.online.schema.update.enable" set to true, you can do online updates table schema, otherwise you can't. In newest HBase versions this parameter turned on by default. Note, that some changes in configuration, like the changes of compression codec or block size, will not affect old HFiles. Only after compaction a new parameter will be applied to old data involved in this compaction.
Upvotes: 3