本文介绍了Apache Storm-Storm UI中不存在喷口和螺栓的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在本地开发风暴拓扑.我正在使用Storm 0.9.2孵化器,并且已经开发出一种简单的拓扑.当我使用LocalCluster()选项部署它时,它可以正常工作,但不会显示在我的Storm UI中,而只是执行.

I am developing a storm topology locally. I am using the Storm 0.9.2-incubating and have developed a simple Topology. When I deploy it using the LocalCluster() option, it works fine, but it will not show up in my Storm UI it just executes.

当我定期部署它时,它将在我的Storm UI中显示拓扑,但是当我单击它时不会显示喷口或螺栓.

When I deploy it regularly, it will show the Topology in my Storm UI, but no spouts or bolts will be visible when I click it.

我也尝试了许多Storm Starter项目中附带的示例WordCountTopology进行此操作.发生相同的行为.

I have also tried this with example WordCountTopology that comes in many storm starter projects. The same behavior happens.

我的问题是,为什么喷嘴和螺栓没有出现?如果在不使用LocalCluser()选项的情况下在本地部署拓扑,会不会引起问题?是否可以在本地框上部署拓扑,并在Storm UI中使用所有喷嘴和螺栓查看拓扑,并且不立即执行拓扑,而是等待诸如kafka消息之类的消息?

My question is really, why are the spouts and bolts not showing up? If you deploy a topology locally without using LocalCluser() option will that cause problems? Is it possible to deploy a topology on my local box and see it in Storm UI with all the spouts and bolts and not have it execute immediately, but wait for something such as a kafka message?

推荐答案

您是否正在运行Storm Supervisor?如果您部署了新的拓扑并且Supervisor没有运行,则该拓扑将显示在UI中,但是由于从未对其进行初始化,因此单击时不会显示任何统计信息.

Are you running Storm Supervisor? If you deploy a new topology and Supervisor isn't running the topology will show up in the UI but since its never initialized it doesn't show any stats when you click into it.

这篇关于Apache Storm-Storm UI中不存在喷口和螺栓的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-22 23:12