apache storm本地群集“无法规范化地址”

cuxqih21  于 2021-06-24  发布在  Storm
关注(0)|答案(1)|浏览(278)

我正在尝试使用以下命令运行本地群集:

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的自制安装,但到目前为止,我在网上找不到任何类似的问题。

z9smfwbn

z9smfwbn1#

我在尝试使用STS4.8.0在新环境中进行调试时遇到了相同的错误。使用sts3.9.10是我的解决方案。

相关问题