Java Apache Storm本地群集“;无法规范化地址“;
我正在尝试使用以下命令运行本地群集:Java Apache Storm本地群集“;无法规范化地址“;,java,maven,apache-zookeeper,apache-storm,Java,Maven,Apache Zookeeper,Apache Storm,我正在尝试使用以下命令运行本地群集: 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
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]
警告o.a.s.s.o.a.z.ClientCnxn-服务器localhost/:2000的会话0x0,意外错误,正在关闭套接字连接并尝试重新连接
java.lang.IllegalArgumentException:无法规范化地址localhost/:2000,因为它不可解析
在org.apache.storm.shade.org.apache.zookeeper.SaslServerPrincipal.getServerPrincipal(SaslServerPrincipal.java:65)~[storm-shade-deps-2.2.0.jar:2.2.0]
在org.apache.storm.shade.org.apache.zookeeper.SaslServerPrincipal.getServerPrincipal(SaslServerPrincipal.java:41)~[storm-shade-deps-2.2.0.jar:2.2.0]
在org.apache.storm.shade.org.apache.zookeeper.ClientCnxn$SendThread.startConnect(ClientCnxn.java:1001)~[storm-shade-deps-2.2.0.jar:2.2.0]
在org.apache.storm.shade.org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1060)[storm-shade-deps-2.2.0.jar:2.2.0]
当使用带有zookeeper、nimbus和supervisor容器的停靠设置时,拓扑将很好地提交。在本地运行时,我正在使用自制的storm安装,但到目前为止,我在网上找不到任何类似的问题。在尝试使用STS 4.8.0在新环境中进行调试时,我遇到了相同的错误。使用STS 3.9.10是我的解决方案。我们目前也遇到了同样的问题。它似乎与Java14有关,您找到解决方案了吗?还需要进一步挖掘。似乎与……有关。该版本的zk仍由storm在阴影deps中内部使用。因此,一个断断续续、丑陋的解决方案可能是切换到另一个(较低的)Java版本。我会设法找到更好的解决办法。