Skip to content

ZooKeeper Config Source#

This Config Source allows using Apache ZooKeeper to load configuration values.

The following dependency is required in the classpath to use the ZooKeeper Config Source:

<dependency>
    <groupId>io.smallrye.config</groupId>
    <artifactId>smallrye-config-source-zookeeper</artifactId>
    <version>3.10.2-SNAPSHOT</version>
</dependency>

It also requires to set up additional configuration properties to identify the ZooKeeper instance:

io.smallrye.configsource.zookeeper.url=localhost:2181
io.smallrye.configsource.zookeeper.applicationId=applicationId

The ZooKeeper Config Source will look for configuration values in a ZooKeeper instance running in the url set in io.smallrye.configsource.zookeeper.url and in the znodes available in /applicationId/.

This Config Source has an ordinal of 150.