K8S搭建及部署Hadoop集群
K8s服务器配置 服务器节点 cat >> /etc/hosts << EOF 192.168.207.133 k8s-master 192.168.207.134 k8s-node1 192.168.207.135 k8s-node2 EOF kubeadm 初始化 kubeadm init \ --apiserver-advertise-address=192.168.207.133 \ --image-repository registry.aliyuncs.com/google_containers \ --kubernetes-version v1.19.0 \ --service-cidr=10.96.0.0/12 \ --pod-network-cidr=10.244.0.0/16 \ --ignore-preflight-errors=all 搭建Hadoop集群 编写hadoop.yaml apiVersion: v1 kind: ConfigMap metadata: name: kube-hadoop-conf data: HDFS_MASTER_SERVICE: hadoop-hdfs-master HDOOP_YARN_MASTER: hadoop-yarn-master --- apiVersion: v1 kind: Service metadata: