Closed sahilpaudel closed 4 years ago
Hi @sahilpaudel,
Have you checked that your Kafka (and zookeeper) and running, reachable? Have you checked the logging? Thanks.
Yes @joowani I have verified that and kafka is working and when start worker informational logs are appearing in the console.
Hi @sahilpaudel,
You would have to give me more details or something to help me reproduce the issue.
I just have above two code files and kafka server that is already started.
When I run python3 worker.py
I get Starting Worker(hosts=127.0.0.1:9092, topic=kq_topic, group=group)
When I run python3 producer.py
nothing happens the code exits without print or doing anything.
Hi @sahilpaudel,
What OS and versions of Kafka and zookeeper are you using? Thanks.
Sorry I missed that @joowani
OS: macOS Catalina 10.15.6 Kafka : stable 2.6.0 zookeeper: stable 3.6.1
Thanks.
Hi @sahilpaudel,
I was able to reproduce the problem. It was due to kafka-python (dependency of kq) changing the behaviour of its producer put API.
I just released version 2.0.1. Could you please run pip install --upgrade kq
and try again? Thank you.
Thank you @joowani It is working now 👍
worker.py
producer.py
when I run worker.py it hangs on
when I run producer.py nothing happens. Can you please help to get started.
Thanks.