hadoop错误解决办法:-------HDFS上传文件保存错误或速度很慢

18 篇文章 0 订阅
7 篇文章 0 订阅

出现症状:
2018-11-22 11:28:12,711 WARN hdfs.DataStreamer: Abandoning BP-2142139802-10.20.2.1-1536240602405:blk_1073765062_24289
2018-11-22 11:28:12,712 WARN hdfs.DataStreamer: Excluding datanode DatanodeInfoWithStorage[10.20.2.12:9866,DS-e03c5ebb-4e4f-48fd-9434-2ad52e1f277e,DISK]
2018-11-22 11:28:14,155 INFO hdfs.DataStreamer: Exception in createBlockOutputStream blk_1073765064_24291
java.io.IOException: Got error, status=ERROR, status message , ack with firstBadLink as 10.20.2.12: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)
2018-11-22 11:28:14,155 WARN hdfs.DataStreamer: Abandoning BP-2142139802-10.20.2.1-1536240602405:blk_1073765064_24291
2018-11-22 11:28:14,156 WARN hdfs.DataStreamer: Excluding datanode DatanodeInfoWithStorage[10.20.2.12:9866,DS-e03c5ebb-4e4f-48fd-9434-2ad52e1f277e,DISK]
2018-11-22 11:28:18,129 INFO hdfs.DataStreamer: Exception in createBlockOutputStream blk_1073765068_24295
java.io.IOException: Got error, status=ERROR, status message , ack with firstBadLink as 10.20.2.11: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)
2018-11-22 11:28:18,129 WARN hdfs.DataStreamer: Abandoning BP-2142139802-10.20.2.1-1536240602405:blk_1073765068_24295
2018-11-22 11:28:18,130 WARN hdfs.DataStreamer: Excluding datanode DatanodeInfoWithStorage[10.20.2.11:9866,DS-e8a937f8-f0d2-408c-8d90-d15fbb543b2f,DISK]
^C2018-11-22 11:28:33,039 INFO fs.FileSystem: Ignoring failure to deleteOnExit for path hdfs://mycluster/study/spark/Spark-The-Definitive-Guide/data/activity-data/part-00036-tid-730451297822678341-1dda7027-2071-4d73-a0e2-7fb6a91e1d1f-0-c000.json.COPYING

原因分析:
防火墙导致的,通讯不正常。关闭namenode 和datanode 上的防火墙服务。

systemctl disable firewalld;systemctl stop firewalld

cat $HADOOP_PREFIX/etc/hadoop/datanode-hosts-exclude | xargs -i -t ssh root@{} “systemctl disable firewalld;systemctl stop firewalld”

cat $HADOOP_PREFIX/etc/hadoop/slaves | xargs -i -t ssh root@{} “systemctl disable firewalld;systemctl stop firewalld”

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

开心自由天使

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值