-
Notifications
You must be signed in to change notification settings - Fork 1.4k
NoBrokersAvailable when using bootstrap_server list #1440
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
Comments
Did it work properly with kafka-python==1.4.1? Can you check? |
Same error on |
Then you just don't have connection to the cluster. Even telneting to those ports should not work. |
Same problem here when using kafka-python consumer in docker container. |
So, is anybody who knows this reason and have any ideas to resolve it? |
Which OS your docker is running on? I'm using Ubuntu 18.04 and I figured out that the problem has something to do with dockers bridged network mode. So basically it looks like a routing problem. |
The error message is very misguiding. You need to specify the api_version in your consumer connection:
|
@bmamouri there is more context in #1308 (comment) and the rest of that ticket... |
@jeffwidman, you are quite right. Specifying the api_version resolve the connection problem, but the consumer does not necessarily work. I read the ticket you provided, and although I am using 1.4.4 I still can't consume any messages. |
@jeffwidman, by using your fix I run the consumer but it stuck on fetching records from specified topic, What can I do? |
I'm getting the
kafka.errors.NoBrokersAvailable: NoBrokersAvailable
specifically when I use an URL list on the bootstrap_server configuration (e.g. kb1.server:9092,kb2.server:9092,kb3.server:9092).Version Info:
Kafka: 1.0.1
kafka-python: 1.4.2
The text was updated successfully, but these errors were encountered: