HADOOP :WARN org.apache.hadoop.hdfs.server.datanode.DataNode: Problem connecting to server: xxx/xxx
出现该错误的可能原因:
1.去master主机关闭防火墙
永久关闭
chkconfig iptables off
或者
sudo ufw disable
查看防火墙状态:
sudo ufw status
2 . master端未出现 master:9000监听端口状态如下图(正常状态):
修改 hosts配置文件 内容
sudo vim /etc/hosts
在hosts文件中去掉127.0.1.1 localhost
添加10.60.0.89(你的主机IP) master(你的主机名)
重启即可