简体   繁体   English

createBlockOutputStream java.io.IOException中的异常:与firstBadLink的连接错误

[英]Exception in createBlockOutputStream java.io.IOException: Bad connect ack with firstBadLink

Any idea why I am getting this error? 知道为什么我会收到此错误吗? 10.0.1.193 is one of my slave VMs. 10.0.1.193是我的从属VM之一。

ubuntu@anmol-vm1-new:/home/hadoop/yarnpp$ hadoop fs -put tez-0.4.1-incubating/* /apps/tez-0.4.1-incubating 
15/11/30 02:53:28 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
15/11/30 02:54:40 INFO hdfs.DFSClient: Exception in createBlockOutputStream
java.io.IOException: Bad connect ack with firstBadLink as 10.0.1.193:50010
    at org.apache.hadoop.hdfs.DFSOutputStream$DataStreamer.createBlockOutputStream(DFSOutputStream.java:1367)
    at org.apache.hadoop.hdfs.DFSOutputStream$DataStreamer.nextBlockOutputStream(DFSOutputStream.java:1272)
    at org.apache.hadoop.hdfs.DFSOutputStream$DataStreamer.run(DFSOutputStream.java:525)
15/11/30 02:54:40 INFO hdfs.DFSClient: Abandoning BP-342182973-10.0.1.190-1448834909392:blk_1073741851_1028
15/11/30 02:54:40 INFO hdfs.DFSClient: Excluding datanode 10.0.1.193:50010

It looks like the firewall is blocking traffic to the data node. 防火墙似乎阻止了到数据节点的通信。 Open the following ports on datanode machines (10.0.0.193 in your case). 在datanode机器上打开以下端口(在您的情况下为10.0.0.193)。

-A INPUT -p tcp -m state --state NEW -m tcp --dport 50010 -m comment --comment "Port 50010  datanode" -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 50020 -m comment --comment "Port 50020  datanode" -j ACCEPT

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM