hbase shell 命令

来源:互联网 发布:mac卸载自带软件卸载 编辑:程序博客网 时间:2024/05/21 09:59

create 'test', 'cf'

创建一个名为 test 的表,这个表只有一个 列族 为 cf


scan 'test'

查看表


put 'test', 'row1', 'cf:a', 'value1'

添加一条数据


get 'test', 'row1'

查看一行数据


disable 'test'

禁用表


drop 'test'

删除表


list 'table'

列出所有表


exit

退出shell


./hbase shell

进入shell

0 0
原创粉丝点击