使用阿里云配置好且启动成功过的的集群今天启动报错
java.net.BindException: Problem binding to [ecs-server-01:8020] java.net.BindException: Cannot assign requested address; For more details see: http://wiki.apache.org/hadoop/BindException。
排查后确认问题,购买云服务器配置网段时是192.168.0.0,当时在配置/etc/hosts主机映射时使用的是私网ip,且配置了主机映射,后在配置中增加了公网映射。而报错时的网段为192.168.1.0,且进行其他操作时删除了私网ip的映射。ifconfig发现集群中每台服务器的网卡ip都为私网ip,考虑可能集群内部每台服务器之间是局域网通信,所以在/etc/hosts下补充私网ip主机映射。成功启动集群