Skip to content
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

No Broker Available Error when configs 3 broker nodes on codes. #2390

Open
dung3197 opened this issue Aug 28, 2023 · 0 comments
Open

No Broker Available Error when configs 3 broker nodes on codes. #2390

dung3197 opened this issue Aug 28, 2023 · 0 comments

Comments

@dung3197
Copy link

dung3197 commented Aug 28, 2023

It's a beautiful day as other days when I use multiprocessing to get data from a topic that has only one partition.
I divided the offsets range by 500 proccesses to process.

Everything seems okay when I get message from one broker nodes, but when I declare 3 nodes in codes like bellow:

consumer_init = KafkaConsumer(
auto_offset_reset='earliest',
group_id='Client3',
bootstrap_servers='*01..com.vn:9092, *02..com.vn:9092, *03..com.vn:9092', #This not works
#bootstrap_servers='*01..com.vn:9092', #This works
value_deserializer=lambda x: x.decode('utf-8')
)

I'm not be able to pull all of the messages. At a random time, the Consumer return "No Broker Available" Error.
When limit down to 200 processes and declare 3 nodes on consumer to get data, there's no more "No Broker Available" output.

I believe it is the issue that match with #2281
@dpkp please have a look

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant