简体   繁体   English

防暴螺栓中的重新加载属性

[英]reloading properties in a storm bolt

I have some messages whose format will not change but data can change which I want to insert into MySQL db. 我有一些消息,其格式不会改变,但是数据可以改变,我想插入到MySQL数据库中。 So I want to create a properties file which can give me column names for the data received and the table name, so that I can create, edit the tables on the fly without restarting my topology. 因此,我想创建一个属性文件,该文件可以为我提供接收到的数据的列名和表名,以便我可以即时创建,编辑表而无需重新启动拓扑。 How is it possible to achieve something like that. 如何实现这样的目标。

As far as my understanding goes, its not possible to change the wiring of bolts or spouts once the topology is submitted. 据我所知,一旦提交拓扑,就无法更改螺栓或喷口的接线。

I am bit confused about how are you planning to receive these information dynamically from a property file. 我对您打算如何从属性文件动态接收这些信息感到困惑。 please correct me if I am wrong. 如果我错了,请纠正我。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM