org.apache.kafka.common.errors.RecordTooLargeException: The request included a message larger than the max message size the server will accept.
Java客户端调整:MAX_REQUEST_SIZE_CONFIG
kafka服务器端调整:message.max.bytes=2147483640接近Int的Max因为该值最值范围是Int
特别说明:该参数调整完毕以后对已创建的topic不起作用
对已创建topic参数调整:设置为最大整数值2147483647
bin/kafka-configs.sh --zookeeper localhost:2181 --alter --topic topic_name --add-config max.message.bytes=2147483647
问题解决