Replies: 2 comments 1 reply
-
I think this would be nice feature to have. Separate configuration files is also nice for users who might have lots of configuration items or complex setups where navigating a single file can lead to misunderstandings or errors. Here are a few of my thoughts regarding the configuration of plugins:
plugin.hive_interactive1 = "hive"
plugin.hive_batch = "hive"
[plugin.hive_batch]
location = "FILESYSTEM" # plugin.<name>.config-file must be specified when this is present
config-file = "/opt/my-custom-location/plugin.config"
[plugin.hive_interactive1]
hive.metastore = "thrift"
hive.metastore.uri = "thrift://example.net:9083"
hive.metastore-cache = { ttl = "1m", refresh = { interval = "20m", max-threads = 4 } } |
Beta Was this translation helpful? Give feedback.
-
I think it would be nice to support plugin configurations directly in |
Beta Was this translation helpful? Give feedback.
-
Hello folks,
Wanted to get any inputs on supporting configuring plugins directly within config.properties.
Firstly, why do this at all? When configuring multiple plugins, it can be a bit of a pain to see the at a glance configuration of Presto, because they're scattered across several properties. I think it would be easier to provide a default instance of a configuration if we allow inline plugin configuration in the main config file.
The idea would be to add a special prefix for plugins, such as
plugin.
, then followed by a key indicating the plugin itself (such ashive
), then a key indicating the instance of the plugin if applicable (such ashive_interactive1
). There's a bit of disorganization in how we configure plugins, and I think this would clean it up a bit. Keys which are not prefixed byplugin.
will continue to be strictly validated, and to prevent an accident where a core property is added which has this prefix, we can add a checkstyle rule which would fail the build if it's added at any point in the future.We could still support the old way of configuring plugins. I have a couple ideas
config.properties
as a default, and override when a dedicatedetc
config present.Appreciate any thoughts.
Beta Was this translation helpful? Give feedback.
All reactions