From 0b53959f1fe88ba0ed09f66347167449e2fc5a1b Mon Sep 17 00:00:00 2001 From: diandian Date: Tue, 28 Nov 2023 00:09:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'README.yml'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.yml | 50 +++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 49 insertions(+), 1 deletion(-) diff --git a/README.yml b/README.yml index 77805e9..553a3b9 100644 --- a/README.yml +++ b/README.yml @@ -15,4 +15,52 @@ provisioner: nfs-do-block-storage reclaimPolicy: Retain volumeBindingMode: Immediate -nohup kubectl port-forward -n hbase svc/hbase-hbase-master 30162:9095 & \ No newline at end of file +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 + + + + + + + + + + + + + +