Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to provide multiple zookeeper host via spring.config.import property #314

Open
hanson76 opened this issue Mar 24, 2023 · 1 comment

Comments

@hanson76
Copy link

We have a case where we need to provide multiple ip addresses to spring cloud zookeeper (one for each node in the cluster)
We tried to use spring.config.import=zookeeper:ip1:2181,ip2:2181,ip3:2181 Spring Boot fails to start with an error stating
that ip3:2181 can't be loaded.

It is easily verified by creating the minimal spring boot application when spring cloud config zookeeper and add the following property
spring.config.import=zookeeper:localhost:2181,localhost:2181

Do we need to use another syntax to provide the list of ip addresses to Spring Cloud Config ZooKeeper?

@hanson76
Copy link
Author

Might found a solution, we probably did not read or understood the documentation..
It looks to work if we set spring.cloud.zookeeper.connect-string=ip1:2181,ip2:2181,ip3:2181
and then use spring.config.import=zookeeper: (without ip addresses)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants