python发送kafka消息报错[Error 10] MessageSizeTooLargeError

报错:

[Error 10] MessageSizeTooLargeError: The message is 1177421 bytes when serialized which is larger than the maximum request size you have configured with the max_request_size configuration

解决方法:在实例化KafkaProducer类时添加max_request_size配置,修改默认的大小即可:

posted @ 2022-08-09 16:23  随风飘-挨刀刀  阅读(1354)  评论(0编辑  收藏  举报
Top