How to add new column family to an existing HBase table?

前端 未结 3 396
青春惊慌失措
青春惊慌失措 2021-01-07 19:08

I created a table by

create \'tablename\', \'columnfamily1\'

Now is it possible to add another column family \'columnfamily2\'? What is the

3条回答
  •  天涯浪人
    2021-01-07 19:29

    alter 'tablename', NAME => 'newcolumnfamily', VERSIONS => 50
    

    you can specify various properties of the new column family separated by a comma (,)

提交回复
热议问题