更新 'README.yml'

main
diandian 1 year ago
parent 49e719427f
commit 0b53959f1f

@ -16,3 +16,51 @@ reclaimPolicy: Retain
volumeBindingMode: Immediate volumeBindingMode: Immediate
nohup kubectl port-forward -n hbase svc/hbase-hbase-master 30162:9095 & nohup kubectl port-forward -n hbase svc/hbase-hbase-master 30162:9095 &
bash-4.4# hbase shell
HBase Shell
Use "help" to get list of supported commands.
Use "exit" to quit this interactive shell.
For Reference, please visit: http://hbase.apache.org/2.0/book.html#shell
Version 2.4.13, r90fb1ddc1df9b345f26687d5d24cedfb19621d63, Wed Jun 22 20:16:39 PDT 2022
Took 0.0513 seconds
hbase:001:0> create 'student' , 'buaa'
Created table student
Took 6.0667 seconds
=> Hbase::Table - student
hbase:002:0> list
TABLE
student
1 row(s)
Took 0.0460 seconds
=> ["student"]
hbase:005:0> put 'student' , '001' , 'buaa:name' , 'zhuangyao'
Took 0.4693 seconds
hbase:006:0> put 'student' , '001' , 'buaa:age' , '18'
Took 0.0104 seconds
hbase:007:0> put 'student' , '001' , 'buaa:grade' , 'jisaunji2ban'
hbase:001:0> get 'student' , '001'
COLUMN CELL
buaa:age timestamp=2023-11-27T16:05:38.885, value=18
buaa:grade timestamp=2023-11-27T16:05:53.981, value=jisaunji2ban
buaa:name timestamp=2023-11-27T16:05:20.574, value=zhuangyao
1 row(s)
Took 2.1592 seconds

Loading…
Cancel
Save