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的防火墙即可
本文发布于:2024-02-01 17:42:56,感谢您对本站的认可!
本文链接:https://www.4u4v.net/it/170678150738384.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
留言与评论(共有 0 条评论) |