Go to file
diandian 0b53959f1f 更新 'README.yml' 2023-11-28 00:09:49 +08:00
.gitignore Initial commit 2023-11-22 18:44:23 +08:00
LICENSE Initial commit 2023-11-22 18:44:23 +08:00
README.yml 更新 'README.yml' 2023-11-28 00:09:49 +08:00
hbase-master 添加 'hbase-master' 2023-11-27 23:48:08 +08:00
hbase-regionserver.yaml 添加 'hbase-regionserver.yaml' 2023-11-27 23:48:44 +08:00
hdfs-dn.yaml 添加 'hdfs-dn.yaml' 2023-11-27 23:45:43 +08:00
hdfs-nn.yaml 添加 'hdfs-nn.yaml' 2023-11-27 23:46:24 +08:00
yarn-rm.yaml 添加 'yarn-rm.yaml' 2023-11-27 23:47:37 +08:00
yarn.nm 添加 'yarn.nm' 2023-11-27 23:46:59 +08:00
zookeeper.yaml 添加 'zookeeper.yaml' 2023-11-27 23:49:14 +08:00
基于Kubernetes集群构建MongoDB.md 上传文件至 '' 2023-11-22 18:47:22 +08:00

README.yml

# mongdb

---
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
  annotations:
    k8s.kuboard.cn/storageNamespace: hbase
    k8s.kuboard.cn/storageType: nfs_client_provisioner
  name: do-block-storage
  resourceVersion: '36962643'
parameters:
  archiveOnDelete: 'false'
provisioner: nfs-do-block-storage
reclaimPolicy: Retain
volumeBindingMode: Immediate

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