HBase Shell常用操作

1、表操作

添加表

create 'table_name','family'

删除表

disable 'table_name'
drop 'table_name'

添加column family

alter 'table_name', {NAME => 'cf_new'}

查看表结构

describe 'table_name'

列出所有表

list

2、数据(行)操作

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *