执行hadoop fs -appendToFile text /homework/filet时出现如下错误
我的是因为防火墙没有关闭
参考:hadoop报错java.io.IOException: Bad connect ack with firstBadlink as 192.168.1.218:50010 - 指针怒草内存栈 - 博客园 (cnblogs.com)https://www.cnblogs.com/java-synchronized/p/7967030.html
使用命令关闭:
1) 重启后生效 开启: chkconfig iptables on 关闭: chkconfig iptables off 2) 即时生效,重启后失效 开启: service iptables start 关闭: service iptables stop
关闭后可查看防火墙状态
service iptables status
再次执行append操作
成功了



