08.hbase创建表

[root@ecs-0001 bin]# hbase shell
查看所有表
hbase(main):001:0> list
create 'SAAS:DWS_MCHT_SHOP_PORTRAYS', 'BASE', 'DATA'
查看表详情
desc  'SAAS:DWS_MCHT_SHOP_PORTRAYS'
查看所有命名空间
hbase(main):008:0> list_namespace
NAMESPACE                                                                                                                                                   
ORDER_CENTER                                                                                                                                                
SYSTEM                                                                                                                                                      
default                                                                                                                                                     
hbase  
创建命名空间
hbase(main):009:0> create_namespace 'SAAS'
0 row(s) in 0.0880 seconds
创建表
create 'SAAS:DWS_MCHT_SHOP_PORTRAYS', 'BASE', 'DATA'
删除表
disable 'SAAS:DWS_MCHT_SHOP_PORTRAYS'
drop 'SAAS:DWS_MCHT_SHOP_PORTRAYS'
创建命名空间
create_namespace 'SAAS'
create 'SAAS:DWS_IM_USER_WIDE_TBL', 'ST', 'EXT' ,'MB'

 desc  'SAAS:DWS_IM_USER_WIDE_TBL'
 disable  'SAAS:DWS_IM_USER_WIDE_TBL'
 
 enable  'SAAS:DWS_IM_USER_WIDE_TBL'
 
 drop  'SAAS:DWS_IM_USER_WIDE_TBL'
 
 desc 'SAAS:DWS_IM_USER_WIDE_TBL'
posted @ 2023-04-21 14:44  star521  阅读(115)  评论(0编辑  收藏  举报