问题描述
我正在本地开发风暴拓扑.我正在使用 Storm 0.9.2-incubating 并开发了一个简单的拓扑.当我使用 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 中显示拓扑,但是当我单击它时不会看到任何 spouts 或 bolts.
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.
我也用 WordCountTopology 示例进行了尝试,该示例出现在许多 Storm 入门项目中.发生了同样的行为.
I have also tried this with example WordCountTopology that comes in many storm starter projects. The same behavior happens.
我的问题是,为什么喷口和螺栓没有出现?如果您在本地部署拓扑而不使用 LocalCluser() 选项会导致问题吗?是否可以在我的本地机器上部署拓扑并在 Storm UI 中查看它的所有 spouts 和 bolts 并且不让它立即执行,而是等待诸如 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 中不存在 spout 和 bolts的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!