Questions tagged [spring-cloud-zookeeper]

32 questions
3
votes
1 answer

SSL certificate hostname issue in case of microservices internal communication

I have to secure the microservices internal communication using SSL. All my microservices are spring boot application where we are using zookeeper as discovery server. The internal service communication takes place via rest template and feign…
3
votes
0 answers

Spring Boot ZooKeeper client

I want to use ZooKeeper in order to synchronize my distributed services via ZooKeeper ephemeral nodes. The idea is the following - every node in the topology on the startup will create ZooKeeper session and ephemeral nodes. On the node restart or…
alexanoid
  • 24,051
  • 54
  • 210
  • 410
2
votes
0 answers

Zookeeper : java.lang.ClassNotFoundException: org.apache.zookeeper.admin.ZooKeeperAdmin after updating spring boot

I am trying to update an springboot application which uses org.apache.zookeeper.zookeeper. After updating the spring boot version. I am getting one of the two errors given below depending upon the version used. Error 1 - (For new version provided…
2
votes
1 answer

Zookeeper : java.lang.ClassNotFoundException: org.apache.zookeeper.admin.ZooKeeperAdmin

I had a zookeeper with version 3.4.10 and curator with version 2.12.0 but zookeeper with versions less than 3.5.8 has a strict transitive dependency on log4j1. I would like to use log4j2 that's why it's require to update zookeeper version. I tried…
Ray
  • 1,788
  • 7
  • 55
  • 92
2
votes
0 answers

Spring bean is null even though it is beeing populated in another project

I have two projects: A and B. I create a bean in project A like this: @Configuration public class ConnectorConfiguration { @Bean(name = "CON") public ConnectorRegistry connectorRegistry() { return new LocalConnectorRegistry(); …
TheDragoner
  • 273
  • 2
  • 6
  • 17
2
votes
1 answer

How to implement distributed lock around poller in Spring Integration using ZooKeeper

Spring Integration has ZooKeeper support as documented in https://docs.spring.io/spring-integration/reference/html/zookeeper.html However this document is so vague. It suggests adding below bean but does not give details on how to start/stop a…
2
votes
2 answers

Create ZNodes without cmd in Zookeeper

I am trying to implement Configuration Management through Zookeeper. I have created few ZNodes from command line as: create /config "" create /config/mypocapp "" create /config/mypocapp/name "John Doe" Here, name is one of the properties that I…
Akhil Prajapati
  • 1,221
  • 3
  • 14
  • 23
1
vote
0 answers

How to init spring-cloud-zookeeper-config configs

I have multiple spring boot applications, and I put the configs in application-{profile} file in project. Now I'm trying to use zookeeper as spring cloud config center, what's the best way to migrate those configs to zookeeper please? I really don't…
1
vote
0 answers

Zookeeper : assign range to clients

How can I get zookeeper to manage range of number say 1 to 50, 51 to 100 etc to clients C1, C2,C3 as and when more clients connect into the group and get a range assigned?
1
vote
0 answers

How to Config NGINX as api gateway When using Zookeeper registry

how to config nginx read dynamic service when service registry zookeeper. sorry for my bad English in application.yml. spring: cloud: zookeeper: connect-string: localhost:2181 in file api_gateway.conf i have upstream: upstream…
1
vote
0 answers

How to update Zookeeper(as Configuration Management) with the configurations for the current revision of the application in startup time

I am using Zookeeper as configuration management for my application which is designed in microservices architecture and implemented with spring-boot. My configurations will originally be in the application source control(git), so that I can keep…
1
vote
1 answer

Spring Integration: Unable to do leader election with zoo keeper

I am trying to elect leader among containers of my application to do some task I have written following code, @Configuration @EnableIntegration public class LeaderConfiguration { @Bean public LeaderInitiatorFactoryBean…
1
vote
1 answer

Custom Loadblancer rule in Spring cloud Ribbon Zookeeper

Having problem in setting up custom load balancer rule with ribbon-zookeeper-discovery, Current rule provider are ROUND_ROBIN, RANDOM and STICKY, However I wanted to have custom rule. There is no way to customize it hence tried overide the bean…
1
vote
1 answer

How to configure zone Spring Cloud Zookeeper

I've a 3 front-end application and 3 back end application, Let us say 1 Virtual Machine hosts both front-end and back end application as shown in below diagram, Each front-end application connects to back end using discovery client powered by…
1
vote
1 answer

how to skip Kafka and zookeeper logs in debug mode

Using spring boot application.yml and logback.xml property files. I tried with below application.yml properties but its not working. spring.logging.level.org.apache.kafka: clients.consumer.ConsumerConfig: INFO clients.producer.ProducerConfig:…
1
2 3