报错信息:
java.io.IOException: Got error, status=ERROR, status message , ack with firstBadLink as 192.168.100.13:9866
at org.apache.hadoop.hdfs.protocol.datatransfer.DataTransferProtoUtil.checkBlockOpStatus(DataTransferProtoUtil.java:134)
at org.apache.hadoop.hdfs.protocol.datatransfer.DataTransferProtoUtil.checkBlockOpStatus(DataTransferProtoUtil.java:110)
at org.apache.hadoop.hdfs.DataStreamer.createBlockOutputStream(DataStreamer.java:1778)
at org.apache.hadoop.hdfs.DataStreamer.nextBlockOutputStream(DataStreamer.java:1679)
at org.apache.hadoop.hdfs.DataStreamer.run(DataStreamer.java:716)
该报错比较简单,直观的看就是防火墙没关
参考:
查看防火墙状态
firewall-cmd --state
停止firewall
systemctl stop firewalld.service
禁止firewall开机启动
systemctl disable firewalld.service
开放指定端口
firewall-cmd --zone=public --add-port=1935/tcp --permanent
关闭指定端口
firewall-cmd --zone=public --remove-port=5672/tcp --permanent
重启防火墙
firewall-cmd --reloadl