$ kubectl get pod -n fluid-systemgoosefsruntime-controller-5b64fdbbb-84pc6 1/1 Running 0 8hcsi-nodeplugin-fluid-fwgjh 2/2 Running 0 8hcsi-nodeplugin-fluid-ll8bq 2/2 Running 0 8hcsi-nodeplugin-fluid-dhz7d 2/2 Running 0 8hdataset-controller-5b7848dbbb-n44dj 1/1 Running 0 8h
dataset-controller, a pod named goosefsruntime-controller, and multiple pods named csi-nodeplugin. The number of csi-nodeplugin pods depends on the number of nodes in your Kubernetes cluster.$ mkdir <any-path>/co-locality$ cd <any-path>/co-locality
$ kubectl get nodesNAME STATUS ROLES AGE VERSION192.168.1.145 Ready <none> 7d14h v1.18.4-tke.13192.168.1.146 Ready <none> 7d14h v1.18.4-tke.13192.168.1.147 Ready <none> 7d14h v1.18.4-tke.13
Dataset resource object to be createdapiVersion: data.fluid.io/v1alpha1kind: Datasetmetadata:name: hbasespec:mounts:- mountPoint: https://mirrors.tuna.tsinghua.edu.cn/apache/hbase/stable/name: hbase
mountPoint is set to Web UFS in this example. If you want to mount COS, see Mounting COS (COSN) to GooseFS.Dataset resource object$ kubectl create -f dataset.yamldataset.data.fluid.io/hbase created
GooseFSRuntime resource object to be createdapiVersion: data.fluid.io/v1alpha1kind: GooseFSRuntimemetadata:name: hbasespec:replicas: 3tieredstore:levels:- mediumtype: HDDpath: /mnt/disk1quota: 2Ghigh: "0.8"low: "0.7"master:replicas: 3
spec.master.replicas=3 to enable the Raft 3-master mode. The parameter must be set to a positive odd number.$ kubectl create -f runtime.yamlgoosefsruntime.data.fluid.io/hbase created$ kubectl get podNAME READY STATUS RESTARTS AGEhbase-fuse-4v9mq 1/1 Running 0 84shbase-fuse-5kjbj 1/1 Running 0 84shbase-fuse-tp2q2 1/1 Running 0 84shbase-master-0 1/1 Running 0 104shbase-master-1 1/1 Running 0 102shbase-master-2 1/1 Running 0 100shbase-worker-cx8x7 1/1 Running 0 84shbase-worker-fjsr6 1/1 Running 0 84shbase-worker-fvpgc 1/1 Running 0 84s
GooseFSRuntime objectNAME MASTER PHASE WORKER PHASE FUSE PHASE AGEhbase Ready Ready Ready 15m
PHASE values are Ready.$ kubectl exec -ti hbase-master-0 bash$ goosefs fs masterInfo
leader, and the other two are follower:current leader master: hbase-master-0:26000All masters: [hbase-master-0:26000, hbase-master-1:26000, hbase-master-2:26000]
masukan