Apache 风暴 - 如何从配置中禁用螺栓

Apache storm - how to disable bolt from configuration

我需要禁用 Config 中的某些螺栓或使用其他无需修改代码的方式。

添加 "topology.bolt_name.enabled = false" 没有帮助

我的风暴版本是1.1.0

你不能。如果您想在不重新编译代码的情况下编辑拓扑布局,请查看 Flux https://storm.apache.org/releases/2.0.0/flux.html。如果您使用该 DSL 编写您的拓扑结构,您可以 remove/add 随意插入而无需重新编译。