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