ApacheStorm本地群集&无法规范化地址
我正在尝试使用以下命令运行本地群集:
storm local target/myjar.jar com.app.MyMainClass
Storm响应此错误:
WARN o.a.s.s.o.a.z.ClientCnxn - Session 0x0 for server localhost/<unresolved>:2000, unexpected error, closing socket connection and attempting reconnect
java.lang.IllegalArgumentException: Unable to canonicalize address localhost/<unresolved>:2000 because it's not resolvable
at org.apache.storm.shade.org.apache.zookeeper.SaslServerPrincipal.getServerPrincipal(SaslServerPrincipal.java:65) ~[storm-shaded-deps-2.2.0.jar:2.2.0]
at org.apache.storm.shade.org.apache.zookeeper.SaslServerPrincipal.getServerPrincipal(SaslServerPrincipal.java:41) ~[storm-shaded-deps-2.2.0.jar:2.2.0]
at org.apache.storm.shade.org.apache.zookeeper.ClientCnxn$SendThread.startConnect(ClientCnxn.java:1001) ~[storm-shaded-deps-2.2.0.jar:2.2.0]
at org.apache.storm.shade.org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1060) [storm-shaded-deps-2.2.0.jar:2.2.0]
使用带有ZooKeeper、Nimbus和Supervisor容器的停靠设置时,拓扑将提交得很好。我在本地运行时使用的是Storm的自制安装,但到目前为止,我在网上找不到任何类似的问题。
解决方案
尝试在使用STS4.8.0的新环境中调试时遇到相同的错误。使用STS 3.9.10是我的解决方案。
相关文章