hadoop上传文件,个别节点没有上传备份成功

hadoop上传文件,个别节点没有上传备份成功且报错

19/05/18 11:33:33 INFO hdfs.DFSClient: Exception in createBlockOutputStream
java.io.IOException: Got error, status message , ack with firstBadLink as 192.168.19.15:50010
	at org.apache.hadoop.hdfs.protocol.datatransfer.DataTransferProtoUtil.checkBlockOpStatus(DataTransferProtoUtil.java:140)
	at org.apache.hadoop.hdfs.DFSOutputStream$DataStreamer.createBlockOutputStream(DFSOutputStream.java:1363)
	at org.apache.hadoop.hdfs.DFSOutputStream$DataStreamer.nextBlockOutputStream(DFSOutputStream.java:1266)
	at org.apache.hadoop.hdfs.DFSOutputStream$DataStreamer.run(DFSOutputStream.java:449)

解决方法:
关闭防火墙:(CentOS6)

iptables -F

永久关闭防火墙:

chkconfig iptables off

禁用selinux:

setenforce 0

永久关闭selinux:

vi /etc/selinux/config文件

设置“SELINUX=disabled”

你可能感兴趣的:(◆大数据)