Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

Hbase-shell Learning 1

Shulou Source: shulou.com Published: 2022-06-03 04:40:53 11月14日 Update

Create table zn_post, column family cf1

Create 'zn_post',' cf1'

List existing tables

List

Number of query records

Count 'zn_post'

Insert records put 'zn_post',' 20180122-10000001, 'cf1:name',' niewj' put 'zn_post',' 20180122-10000002, 'cf1:name',' johnson'put 'zn_post',' 20180122-10000003, 'cf1:name',' dust-free 'put' zn_post', '20180122-10000003,' cf1:title', 'engineer' scan table records

Scan 'zn_post'

Hbase (main): 048 scan 0 > zn_post'

ROW COLUMN+CELL

20180122-10000001 column=cf1:name, timestamp=1516617050624, value=niewj

20180122-10000002 column=cf1:name, timestamp=1516619708401, value=johnson

20180122-10000003 column=cf1:name, timestamp=1516619741437, value=\ xE7\ xBB\ x9D\ xE5\ xB0\ x98

Tags: Inquiry learning Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Microsoft Linux Docker macOS MariaDB