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: