如何解决 java.io.IOException: Got error, status message , ack with firstBadLink

当我们遇到以下问题的时候,我们可以在对应的集群服务器那里关闭相应的防火墙。

[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 ~]# 
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值