0
  1. I have three kafka hosts which run in real hosts;
  2. I want to send msg to kafka in a docker container, This container can connect to kafka hosts;
  3. When I send msg in docker container use kafka-python,It always taken timout error,like this:
  File "/usr/local/lib/python3.6/dist-packages/kafka/producer/future.py", line 65, in get
    raise self.exception # pylint: disable-msg=raising-bad-type
kafka.errors.KafkaTimeoutError: KafkaTimeoutError: Batch for TopicPartition(topic='online_model_msg', partition=0) containing 1 record(s) expired: 46 seconds have passed since batch creation plus linger time

Dose sb know how to fix this?

wsf1990
  • 195
  • 2
  • 12

0 Answers0