总结的一些Hbase shell的命令

都很简单,可以help来查看帮助

create 'user_test','info'
describe 'user_test'
disable 'user_testinfo'
drop 'user_testinfo'
put 'user_test','test-1','info:username','test1'
put 'user_test','test-1','info','1'
put 'user_test','test-2','info:creattime','20101116'
list
scan 'user_test'
#可以指定startrow,stoprow来scan多个row
scan 'user_test',{COLUMNS =>'info:username',LIMIT =>10, STARTROW => 'test',STOPROW=>'test2'}
get 'user_test','test-1'
get 'user_test','test-1',{COLUMN => 'info:username'}
#删除某行的某一列,比如username那列的值
delete 'user_test','test-1','info:username'
#删除某行所有的列
deleteall 'user_test','test-2'     
count 'user_test'
status 'detailed'