There are 2 datanode(s) running and 2 node(s) are excluded in this operation.

There are 2 datanode(s) running and 2 node(s) are excluded in this operation.

此例是使用docker镜像拉取的2个datanode节点的大数据伪分布式集群部署。
首先配置windows宿主机到docker的IP的映射
route add -p 172.18.0.2(docker容器内IP) mask 255.255.0.0 192.168.10.161(linux虚拟机IP)
刚开始在本地windows中ping 容器的主机IP ping不通,需要开启防火墙ping通(诡异)
执行上传到HDFS的代码,报错 There are 2 datanode(s) running and 2 node(s) are excluded in this operation. 此时在关闭虚拟机中centos的防火墙即可

你可能感兴趣的:(There are 2 datanode(s) running and 2 node(s) are excluded in this operation.)