appendToFile: Failed to replace a bad datanode on the existing pipeline due to no more good datanode

报错:appendToFile: Failed to replace a bad datanode on the existing pipeline due to no more good datanode

原因1:Hadoop默认副本数为3,而我只有2台DataNode,故缺少DataNode。
解决:增加一台DataNode。

原因2:未将DataNode的数据传输端口打开,导致这个DataNode被认为是坏的。
解决:firewall-cmd --zone=public --add-port=9866/tcp --permanent
更建议关闭防火墙,因为没关防火墙,我后面又遇到了很多麻烦
关闭防火墙
systemctl stop firewalld
将防火墙设置为开机不启动
systemctl disable firewalld

posted @ 2022-10-05 21:01  来个煎饼  阅读(768)  评论(0)    收藏  举报