1.进入Hbase shell命令
$>hbase shell
2.建议参照“help”命令
3.shell命令
create创建表指令:
hbase(main):021:0> create 'customer','baseinfo','address'
put插入数据:
hbase(main):021:0> put 'customer','row-1','baseinfo:name','zhangsan'
hbase(main):021:0> put 'customer','row-1','baseinfo:age',12
hbase(main):021:0> put 'customer','row-1','baseinfo:sex','男'
hbase(main):021:0> put 'customer','row-1','address:city','长春'
scan扫描表:
hbase(main):021:0> scan 'customer'
ROW COLUMN+CELL
row-1 column=address:city, timestamp=1533057164343, value=changchun
row-1 column=base