Storm topology configuration

后端 未结 7 2068
南方客
南方客 2021-02-05 10:29

How do you provide a custom configuration to a storm topology? For example, if I have a topology that I built that connects to a MySQL cluster and I want to be able to change w

相关标签:
7条回答
  • 2021-02-05 11:18

    The idea is that when you build your topology, you create instances of your spouts and bolts (among other things) and these instances are serialized and distributed to the right places in the cluster. If you want to configure the behavior of a spout or bolt, you do so when creating the topology before submitting it and you do so by setting instance variables on the bolt or spout that, in turn, drive the configurable behavior you want.

    0 讨论(0)
提交回复
热议问题