hbase shell笔记
查看表
list
创建表(列族名称为:data)
create 'test', 'data'
插入数据
put 'test', 'row1', 'data:1', 'value1'
put'test','row2','data:2','value2'
put 'test', 'row3', 'data:3', 'value3'扫描表
scan 'test'
#扫描4个版本
scan 'test', { VERSIONS => 4 }修改表
#修改列族的version数量
disable'test'
alter'test',{NAME=>'log',VERSIONS=>100}
enable 'test'查看表结构
describe 'test'
删除表
disable 'test'drop 'test'
删除一个Cell
# table_name; row_id; cfdelete 'apache' , '1000', 'log:data'
删除row
#table_name, row_iddeleteall 'apache', '100'
相关推荐
tianhuak 2020-11-24
huha 2020-10-16
lianshaohua 2020-09-23
laisean 2020-11-11
zhangjie 2020-11-11
大牛牛 2020-10-30
firefaith 2020-10-30
liguojia 2020-10-20
wangzhaotongalex 2020-10-20
以梦为马不负韶华 2020-10-20
CARBON 2020-10-20
彼岸随笔 2020-10-20
lianshaohua 2020-10-20
yutou0 2020-10-17
JohnYork 2020-10-16
xiaonamylove 2020-10-16
Julyth 2020-10-16
applecarelte 2020-10-16
ourtimes 2020-10-16