解决org.apache.storm.utils.NimbusLeaderNotFoundException: Could not find leader nimbus from seed hosts [localhost]. Did you specify a valid list of nimbus hosts for config nimbus.seeds?报错
今天同事通过eclipse远程提交任务到测试服务器的Strom集群,报如下错误:org.apache.storm.utils.NimbusLeaderNotFoundException: Could not find leader nimbus from seed hosts [localhost]. Did you specify a valid list of nimbus hosts for config nimbus.seeds?
同事在自己的虚拟机上是可以正常提交任务,但只要连接远程测试服务器就报错。百度之后,删除zookeeper节点上的信息、删除Storm集群再重新搭建等各种方法都不能解决,同事都快崩溃了。
我也检查了测试服务器上Storm集群和zookeeper集群的各项配置,都没有错误。再仔细看报错信息, [localhost],引起了我的猜想,不会是需要本地电脑配置测试服务器的域名吧。于是在她电脑上host文件中配置测试服务器Strom集群各节点的域名,问题搞定。
在此做个记录,供大家参考。