-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Zookeeper Report Error:KeeperErrorCode = NoNode #427
Comments
I'd suggest posting your config files, commands used to run the containers and commands used to run kafkacat along with any other relevant information such as Host OS / versions etc. Basically anything to reproduce the issue. Looking at the error alone, it looks like zookeeper has been asked to set the data on node |
@sscaling Thanks, followed are some configs HOST OSCentOS Linux release 7.5.1804 (Core) docker-compose.yml
where 172.16.xxx.xxx is the HOST IP Git Commit to Use84b3e08 update to newest kafka version 2.1.0 (#428) Docker Version
Start Command
KafkaCat Command
LOGS in docker
|
Thanks for the detailed info. For reference, here are some related issues:
I can't say I honestly ever use the auto-create topics in a production, clustered environment. This is generally managed out-of-band as I want full control so I can configure access + security. This feature is more intended for allowing quick testing - but as you can see by the above two issues - it's not perfect / 100% reliable. Looking at your copy & pasted
Here i can see When I look at the logs for
However inspection of my I can confirm that by describing the topics, using the tooling that comes with Kafka (exec into one of the containers then run...)
Checking the ports with:
I can use the ports to connect using Kafkacat
So it looks like your configuration is correct (assuming your host IP A few things to try:
|
@sscaling Thanks for the answer, I learnt a lot. I solved the problem by adding the following to /etc/hosts
which is the container-host and container-ip mapping. issue closed. |
any explanation why I need to manually put those to /etc/hosts? |
agree, any explanation? |
I have read https://github.com/wurstmeister/kafka-docker/wiki/Connectivity very clearly and use the docker -compose up -d,containers look fun when startup.
But when I use kafkacat to produce messages to topic, the topic will be create automaticlly in kafka containers(it is right), but the zookeeper containers reports:
Zookeeper Report Error:KeeperErrorCode = NoNode
, and the kafkacat/or producer program hangup and report timeout...here is the logs:
Kafka: 2.0.1
Zookeeper: 3.4.9
Is there something wrong with zookeeper network ?
The text was updated successfully, but these errors were encountered: