You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
diandian 0b53959f1f
更新 'README.yml'
12 months ago
.gitignore Initial commit 12 months ago
LICENSE Initial commit 12 months ago
README.yml 更新 'README.yml' 12 months ago
hbase-master 添加 'hbase-master' 12 months ago
hbase-regionserver.yaml 添加 'hbase-regionserver.yaml' 12 months ago
hdfs-dn.yaml 添加 'hdfs-dn.yaml' 12 months ago
hdfs-nn.yaml 添加 'hdfs-nn.yaml' 12 months ago
yarn-rm.yaml 添加 'yarn-rm.yaml' 12 months ago
yarn.nm 添加 'yarn.nm' 12 months ago
zookeeper.yaml 添加 'zookeeper.yaml' 12 months ago
基于Kubernetes集群构建MongoDB.md 上传文件至 '' 12 months ago

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