hbase>> alter 't1' , METHOD => 'table_att", MAX_FILESIZE =>'134217728'
统计表中的行数
hbase>>count 't1'
显示表相关信息
hbase>>describe 't1'
使表有效或无效
hbase>>enable 't1'
删除指定单元格的数据
hbase>>delete 't1' , 'r1' , 'c1' , ts1
删除表
hbase >> drop 't1'
判断表是否存在
hbase>>exists
退出HBase Shell和关闭HBase集群
hbase>>exit
hbase>>shutdown
输出HBase集群状态信息
hbase>>status 'detailed'
实例
(0):创建上图表内容
start-dfs.sh //启动hadoop
start-hbase.sh //启动hbase
hbase shell // 进入shell
//表名为student,属性分别为ID、name、magor、socre,列族为information
create 'student', ‘information'
//行键由系统系统默认属性自动创建
put 'student','201801','information:name','wang' //行键为201801
put 'student','201801','information:magor','math'
put 'stduent','201801','information:socre','90'
put 'student','201802','information:name','zhang' //行键为201802
put 'student','201802','information:magor','math'
put 'stduent','201802','information:socre','91'
(1):列出HBase所有表的相关信息
describe 'student'
(2):在终端打印出指定表的所有记录数据。
scan 'student'
(3):向已经创建好的表添加和删除指定的列族或列。
alter 'student',NAME =>'sexy' //添加列族sexy
alter 'student',NAME=>'sexy',METHOD=>'delete' //删除刚好添加的列族