Apache kafka 无法发送大卡夫卡消息

Apache kafka 无法发送大卡夫卡消息,apache-kafka,streaming,Apache Kafka,Streaming,我正试图通过卡夫卡发送一条10770128字节的信息。我收到以下错误: org.apache.kafka.common.errors.RecordTooLargeException: The message is 10770128 bytes when serialized which is larger than the maximum request size you have configured with the max.request.size configuration. 我已经完

我正试图通过卡夫卡发送一条10770128字节的信息。我收到以下错误:

org.apache.kafka.common.errors.RecordTooLargeException: The message is 10770128 bytes when serialized which is larger than the maximum request size you have configured with the max.request.size configuration.
我已经完成并向server.properties、producer.properties和consumer.properties添加了以下设置

replica.fetch.max.bytes =12000000
message.max.bytes=12000000
max.message.bytes=12000000
max.request.size=12000000
max.message.max.bytes=12000000
max.partition.fetch.bytes=12000000
这是一个三节点卡夫卡集群。每个节点在每个文件中都有上述设置。感谢您的帮助。谢谢:)


编辑:我已经尝试了看到的配置,但问题仍然存在

我假设您在编辑属性文件后重新启动了群集?@cricket\u 007是的,我重新启动了所有代理节点。我没有重新启动zookeeper节点。我还配置了你提到的可能的副本中的所有设置。不需要编辑Zookeeper。我假设您使用的是常规Java客户端,没有Spring Boot、Spark等?producer是一个Spring Boot应用程序,但是项目中没有producer设置。但是您提到您有一个
producer.properties
?在任何情况下,您都必须更改该项目中的生产者设置。我假设您在编辑属性文件后重新启动了集群?@cricket_007是的,我重新启动了所有代理节点。我没有重新启动zookeeper节点。我还配置了你提到的可能的副本中的所有设置。不需要编辑Zookeeper。我假设您使用的是常规Java客户端,没有Spring Boot、Spark等?producer是一个Spring Boot应用程序,但是项目中没有producer设置。但是您提到您有一个
producer.properties
?在任何情况下,您都必须更改该项目中的制作人设置