学习进度5

HBase Shell命令行交互:

启动Shell    $ hbase shell

列出所有的表   hbase >  list

创建名为mytable的表,含有一个列族hb    hbase > create ' mytable' , 'hb'

 在‘mytable’表的'first'行中的‘hb:data’列对应的数据单元中插入字节数组‘hello HBase’

  hbase > put  'mytable' , 'first' , 'hb:data' , 'hello HBase' 

读取mytable表 ‘first’行的内容   hbase > get 'mytable' , 'first' 

读取mytable表所有的内容      hbase > scan ‘mytable' 

posted @ 2021-09-17 20:17  我好cai  阅读(20)  评论(0编辑  收藏  举报