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配置,修改默認的大小即可:

浙公網安備 33010602011771號