1、进入HBase客户端命令操作界面
bin/hbase shell
2、查看当前数据库中有哪些表
list
3、创建一张表
create 'student','info'
4、向表中存储一些数据
put 'student','1001','info:name','Thomas'
put 'student','1001','info:sex','male'
put 'student','1001','info:age','18'
5、扫描查看存储的数据
scan 'student'
6、更新指定字段的数据
put 'student','1001','info:name','Nick'
7、查看指定行的数据
get 'student','1001'
8、删除某个rowKey全部的数据
deleteall 'student','1001'
9、删除某个rowKey中某一列的数据
delete 'student','1001','info:sex'
10、清空表数据
truncate 'student'
11、删除表
首先让表为disable状态:disable 'student'
然后才能drop这个表:drop 'student'
在操作Hbase时,ctrl + backspace 删除已输入的字段