Kafka 0.10 Java Client TimeoutException: Batch containing 1 record(s) expired

前端 未结 3 1191
鱼传尺愫
鱼传尺愫 2021-02-15 16:02

I have a single node, multi (3) broker Zookeeper / Kafka setup. I am using the Kafka 0.10 Java client.

I wrote following simple remote (on a different Server than Kafka)

3条回答
  •  灰色年华
    2021-02-15 16:33

    This answer shares some insight. You can increase the request.timeout.ms producer configuration which will allow the client to queue batches for longer before expiring.

    You might also want to look into the batch.size and linger.ms configurations and find the optimal that works in your case.

提交回复
热议问题