Open fangweilong opened 4 years ago
版本:3.2.1
error:could only be written to 0 of the 1 minReplication nodes. There are 1 datanode(s) running and 1 node(s) are excluded in this operation.
docker 容器内部互相可以ping通,selinux和firewalld已经关闭,容器内部的hosts可能看到容器ip和容器的id映射。但是在java中调用创建方法就会报错。请问还有什么可能的配置我没有修改,或者有什么可能的调试方法可以找出更详细的报错信息
问题已解决 解决方案(我是部署的伪分布式,如果分布在不同的服务器上可能需要在多台宿主机上修改,请自行测试):
打开宿主机(namenode和datanode必须能互相访问到,在window中无法使用,必须部署到Linux下)
vi /etc/hosts # 文件中追加 <namenode 容器内部ip> namenode reboot
版本:3.2.1
error:could only be written to 0 of the 1 minReplication nodes. There are 1 datanode(s) running and 1 node(s) are excluded in this operation.
docker 容器内部互相可以ping通,selinux和firewalld已经关闭,容器内部的hosts可能看到容器ip和容器的id映射。但是在java中调用创建方法就会报错。请问还有什么可能的配置我没有修改,或者有什么可能的调试方法可以找出更详细的报错信息