【问题标题】:Apache storm ui does not show bolts and spoutsApache Storm ui 不显示螺栓和喷口
【发布时间】:2019-11-01 12:42:06
【问题描述】:

我在本地模式下运行 Apache Storm 拓扑,它工作正常,但是当我将它提交给storm时,除了拓扑之外,spouts 和 bolts 不会显示在 Storm UI 中。

有人建议应该运行 Supervisor,我也尝试过,即 Supervisor、nimbus 和 zookeeper 运行良好。提前致谢。提出了类似的问题,这表明主管应该打开Apache Storm - spout and bolts not present in Storm UI ...但是在我的情况下这不起作用任何想法,拜托。

 /usr/local/storm$ jps
721 RemoteMavenServer36
6017 Supervisor
5780 Nimbus
6181 UIServer
5672 QuorumPeerMain
489 Main
7499 Jps
4927 Launcher

【问题讨论】:

  • 您能否列出您用来运行拓扑的命令,包括您如何启动 Storm 本身?
  • 是的,当然:zookeeper/bin$ zkServer.sh start /storm$ bin/storm nimbus /storm$ bin/storm supervisor /storm$ bin/storm ui 我也尝试过以不同的顺序运行上述命令......但同样的事情发生...... @StigRohdeDøssing 谢谢,感谢您的帮助。
  • 这些命令没问题。您使用哪个命令提交拓扑?
  • 我已使用此命令bin/storm jar /usr/local/ADMIExampleForStorm/examples/storm-example/target/storm-example-1.0-jar-with-dependencies.jar admicloud.storm.wordcount.WordCountTopology WordCount 并且拓扑已成功提交,并且拓扑在 UI 中也可见,但是当我单击拓扑时,没有螺栓和喷口的详细信息。我尝试了 2或 3 种不同的拓扑,具有螺栓和喷口,但没有运气。
  • 好的。您提交的 jar 很可能有问题,或者阻止您的工作人员启动。检查storm/logs/workers-artifacts目录下的日志,看看是否有错误被记录。

标签: apache user-interface apache-storm


【解决方案1】:

基本上,您使用的 Storm 版本默认设置了一些 JVM 参数,这些参数与 Java 9+ 不兼容。您需要通过修改 conf/storm.yaml 中的 worker.childopts 设置来替换参数。

您要使用的设置类似于

worker.childopts: "-Xmx%HEAP-MEM%m -Xlog:gc*:artifacts/gc.log:time,uptime:filecount=10,filesize=1M -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=artifacts/heapdump"

【讨论】:

  • 仍然无法在 UI 中看到 spouts 和 bolts 的详细信息,并在 worker.log.err Unrecognized VM option 'PrintGCDateStamps' [0.000s][warning][gc] -Xloggc is deprecated. Will use -Xlog:gc:artifacts/gc.log instead. Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit. 中获得了此日志
  • 你的 conf/storm.yaml 的内容是什么?
猜你喜欢
  • 2014-07-29
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多