cd pv
#见README
kubectl apply -f ./
kubectl apply -f ./example
kubectl get pv
cd k8s
kubectl apply -f hdfs-service.yaml
kubectl apply -f hdfs-namenode.yaml
kubectl apply -f hdfs-datanode.yaml
You can visit the HDFS DashBoard with this address: http://localhost:30070/
You can enter into container by kubectl exec -it pod/hdfs-datanode-0 -- /bin/bash
and use hdfs dfs -ls /
to list HDFS files.
kubectl scale sts hdfs-datanode --replicas=4
kubectl apply -f hdfs-balance.yaml
You can visit the HDFS DashBoard with this address: http://localhost:31318/
kubectl apply -f hdfs-client.yaml