当我们遇到以下问题的时候,我们可以在对应的集群服务器那里关闭相应的防火墙。
[root@hadoop01 hadoop-2.7.7]# hdfs dfs -put ./README.txt /
19/09/29 18:47:11 INFO hdfs.DFSClient: Exception in createBlockOutputStream
java.io.IOException: Got error, status message , ack with firstBadLink as 192.168.216.113:50010
at org.apache.hadoop.hdfs.protocol.datatransfer.DataTransferProtoUtil.checkBlockOpStatus(DataTransferProtoUtil.java:140)
at org.apache.hadoop.hdfs.DFSOutputStream$DataStreamer.createBlockOutputStream(DFSOutputStream.java:1497)
at org.apache.hadoop.hdfs.DFSOutputStream$DataStreamer.nextBlockOutputStream(DFSOutputStream.java:1400)
at org.apache.hadoop.hdfs.DFSOutputStream$DataStreamer.run(DFSOutputStream.java:554)
19/09/29 18:47:11 INFO hdfs.DFSClient: Abandoning BP-491353440-192.168.216.111-1569193027097:blk_1073741825_1001
19/09/29 18:47:11 INFO hdfs.DFSClient: Excluding datanode DatanodeInfoWithStorage[192.168.216.113:50010,DS-8a68304a-90f7-4537-981b-b8f14692229c,DISK]
19/09/29 18:47:11 INFO hdfs.DFSClient: Exception in createBlockOutputStream
java.io.IOException: Got error, status message , ack with firstBadLink as 192.168.216.112:50010
at org.apache.hadoop.hdfs.protocol.datatransfer.DataTransferProtoUtil.checkBlockOpStatus(DataTransferProtoUtil.java:140)
at org.apache.hadoop.hdfs.DFSOutputStream$DataStreamer.createBlockOutputStream(DFSOutputStream.java:1497)
at org.apache.hadoop.hdfs.DFSOutputStream$DataStreamer.nextBlockOutputStream(DFSOutputStream.java:1400)
at org.apache.hadoop.hdfs.DFSOutputStream$DataStreamer.run(DFSOutputStream.java:554)
19/09/29 18:47:11 INFO hdfs.DFSClient: Abandoning BP-491353440-192.168.216.111-1569193027097:blk_1073741826_1002
19/09/29 18:47:11 INFO hdfs.DFSClient: Excluding datanode DatanodeInfoWithStorage[192.168.216.112:50010,DS-04337e63-bae3-4cb7-9f5d-203e33314f93,DISK]入代码片
192.168.216.112
[root@hadoop02 ~]# service iptables stop
iptables: Setting chains to policy ACCEPT: filter [ OK ]
iptables: Flushing firewall rules: [ OK ]
iptables: Unloading modules: [ OK ]
[root@hadoop02 ~]#
192.168.216.113
[root@hadoop03 ~]# service iptables stop
iptables: Setting chains to policy ACCEPT: filter [ OK ]
iptables: Flushing firewall rules: [ OK ]
iptables: Unloading modules: [ OK ]
[root@hadoop03 ~]#