【问题标题】:Exception in createBlockOutputStream java.io.IOException: Bad connect ack with firstBadLinkcreateBlockOutputStream java.io.IOException 中的异常:Bad connect ack with firstBadLink
【发布时间】:2015-11-30 02:58:14
【问题描述】:

知道为什么我会收到此错误吗? 10.0.1.193 是我的从属虚拟机之一。

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

【问题讨论】:

    标签: java hadoop hdfs microsoft-distributed-file-system apache-tez


    【解决方案1】:

    防火墙似乎正在阻止数据节点的流量。在 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
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-03-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-08-29
      • 1970-01-01
      • 2018-10-16
      相关资源
      最近更新 更多