question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support for new Producer/Consumer without Zookeeper connection

See original GitHub issue

Hi,

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:closed
  • Created 7 years ago
  • Comments:17 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
garyrussellcommented, Jan 25, 2018

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).

1reaction
barrycomminscommented, Jan 2, 2017

@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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found