Support for new Producer/Consumer without Zookeeper connection
See original GitHub issueHi,
is there any plan to support using the new Consumer / new Producer configuration without having to specify the connection to Zookeeper? http://kafka.apache.org/documentation.html#producerconfigs
It looks like it will default to localhost in KafkaBinderConfigurationProperties
, and is an expected setting.
In some Kafka configurations, particularly when using ACLs, the connection to Zookeeper will be firewalled and the producer/consumer will only be allowed to connect to Kafka. This is often the case when management of topics is restricted.
Issue Analytics
- State:
- Created 7 years ago
- Comments:17 (11 by maintainers)
Top Results From Across the Web
Kafka Without ZooKeeper: A Sneak Peek At the ... - Confluent
When leadership changes, the new active controller already has all of the committed metadata records in memory.
Read more >Installing Apache Kafka without Zookeeper: Easy Steps 101
This article provides a comprehensive guide on installing Kafka without Zookeeper. It also provides information on Kafka and Zookeeper.
Read more >Why do Kafka consumers connect to zookeeper, and ...
New consumers do not need connection to Zookeeper since group balancing is provided by kafka itself.
Read more >Kafka 3.3 Documentation
Stop the producer and consumer clients with Ctrl-C , if you haven't done so already. Stop the Kafka broker with Ctrl-C . Lastly,...
Read more >Documentation - Apache Kafka
Each partition is an ordered, immutable sequence of messages that is continually appended to—a commit log. The messages in the partitions are each...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Just to close this out; the upcoming 2.0 release has no dependencies on zookeeper at all. Even though the bindings have used the pure java client for a long time now, we still needed to go via Zookeeper to provision topics.
There is now a pure Java
AdminClient
(it was added in 0.11 but was not fully functional - for the binder’s needs - until 1.0.0).@nitantbhartia Hi, I’ve only gotten back to looking at this today, and it looks like there’s a very simple solution.
just set
spring.cloud.stream.kafka.binder.auto-create-topics=false
and the binder will never attempt to connect to Zookeeper. It still sets the default to localhost, but it isn’t used.I’ve tried this on
1.1.0.RELEASE