hadoop_hdfs_上传文件报错

错误提示:

INFO hdfs.DFSClient: Exception in createBlockOutputStream java.io.IOException: Bad connect ack with firstBadLink 

INFO hdfs.DFSClient: Abandoning block blk_-1300529705803292651_37023 

WARN hdfs.DFSClient: DataStreamer Exception: java.io.IOException: Unable to create new block.

解决办法:

关闭防火墙: 

禁用selinux: 
编辑 /etc/selinux/config文件,设置“SELINUX=disabled”

 

防火墙操作:

  查看防火墙状态

    firewall-cmd --state

  停止firewall

    systemctl stop firewalld.service

  禁止firewall开机启动

    systemctl disable firewalld.service

关闭selinux 

  进入到/etc/selinux/config文件

    vi /etc/selinux/config

  修改如下:

    SELINUX=disabled

posted @ 2018-05-16 14:15  亮sir  阅读(249)  评论(0编辑  收藏  举报