1、列出所有namespace
list_namespace
2、创建namespace
create_namespace 'ns_name'
3、修改namespace属性
alter_namespace 'nsname', {METHOD => 'set', 'PROPERTY_NAME' => 'PROPERTY_VALUE'}
4、删除namespace属性
alter_namespace 'nsname',{METHOD => 'unset', NAME => 'PROPERTY_NAME'}
5、删表姿势:先disable,再drop
disable 'nsname:tbname'
drop 'nsname:tbname'
6、查询表中所有记录
scan 'nsname:tbname'
7、插入记录
put 'nsname:tbname','key','cf:colname','value'
8、修改值
put 'nsname:tbname','key','cf:colname','newvalue'
9、清空表(truncate)
truncate 'nsname:tbname'
10、删除记录
delete 'nsname:tbname','key','cf:colname'
11、获取总记录数
count 'nsname:tbname'
12、删除全部记录
deleteall 'nsname:tbname','key'
— 要养成终生学习的习惯 —
标签:03,key,colname,namespace,tbname,nsname,常用命令,hbase From: https://www.cnblogs.com/houhuilinblogs/p/18101588