Python Post kafka Messages Error: [Error 10] MessageSizeTooLargeError

Error Message:

[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

Solution: Add the max_request_size configuration when instantiating the KafkaProducer class, and modify the default size:

Read More:

Leave a Reply

Your email address will not be published. Required fields are marked *