服务器重启后,hostname改变,hdfs不能上传文件
1.修改hostname
#hostname newname
java.net.NoRouteToHostException: 没有到主机的路由
java.io.IOException: Bad connect ack with firstBadLink as 192.168.11.5:50011
2.关闭192.168.11.5的防火墙
(1)查看防火墙的状态
[root@xxx ~]# service iptables status
iptables:未运行防火墙。
(2)关闭防火墙
#service iptables stop
1.修改hostname
#hostname newname
java.net.NoRouteToHostException: 没有到主机的路由
java.io.IOException: Bad connect ack with firstBadLink as 192.168.11.5:50011
2.关闭192.168.11.5的防火墙
(1)查看防火墙的状态
[root@xxx ~]# service iptables status
iptables:未运行防火墙。
(2)关闭防火墙
#service iptables stop