You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 18, 2018. It is now read-only.
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:
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).
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?
The text was updated successfully, but these errors were encountered: