Open arnolddeng85 opened 8 years ago
Yeah, I agree that this is not ideal. I don't believe it's possible to use "variables" in YAML and there is no easy workaround I can think about.
Implementing a Python DSL for specifying topologies instead than just a YAML config file would easily solve this problem, but I don't believe there is any plan to do that for now. If you really care about this, you could write a tiny Python script to generate your YAML file and run it via your Makefile (I did that a couple of times, it's not great, but it works).
OK. Thanks for your suggestion.
I want to define DB server info(host, port, etc.) which are used by all the spouts and bolts. But I think it is hard to maintain if I define the same DB server info at the options under all the components on "pyleus_topology.yaml". Such as:
So how to define global options in "pyleus_topology.yaml" for all components and how to get the global options at component class code?