INFO hdfs.DFSClient: Exception in createBlockOutputStream错误

来源:互联网 发布:淘宝店铺封号 编辑:程序博客网 时间:2024/05/18 13:25
从本地往hdfs文件系统上传文件,出现如下错误: 
17/11/12 22:44:10 INFO hdfs.DFSClient: Exception in createBlockOutputStream
java.io.IOException: Bad connect ack with firstBadLink as 192.168.0.101:50010
at org.apache.hadoop.hdfs.DFSOutputStream$DataStreamer.createBlockOutputStream(DFSOutputStream.java:1456)
at org.apache.hadoop.hdfs.DFSOutputStream$DataStreamer.nextBlockOutputStream(DFSOutputStream.java:1357)
at org.apache.hadoop.hdfs.DFSOutputStream$DataStreamer.run(DFSOutputStream.java:587)


解决方法: 

关闭防火墙: 

iptables -F

永久关闭防火墙:

chkconfig iptables off

禁用selinux: 

setenforce 0

永久关闭selinux:

vi  /etc/selinux/config文件

设置“SELINUX=disabled”

阅读全文
0 0
原创粉丝点击