gpt4 book ai didi

spring - org.apache.kafka.common.errors.RecordTooLargeException : The request included a message larger than the max message size the server will accept 错误

转载 作者:行者123 更新时间:2023-12-05 08:18:41 29 4
gpt4 key购买 nike

Im using kafka 2.11, getting the below exception

2019-03-15 16:41:19.469 ERROR 32539 --- [ad | producer-1] o.s.k.support.LoggingProducerListener : Exception thrown when sending a message with key='null' and payload='[{"id":1,"name":"Tow Motor","description":"Tow motor is moving from second row","xcoordinate":"2264"...' to topic Kafka_Json1:

org.apache.kafka.common.errors.RecordTooLargeException: The request included a message larger than the max message size the server will accept.

最佳答案

message.max.bytes=100000000 // Increase the size in server.properties file Say E.x 100 MB

max.request.size=100000000 // in producer.properties file Say E.x 100 MB

max.partition.fetch.bytes=100000000 // in consumer.properties file so that consumer can receive the data Say E.x 100 MB

And restart the kafka broker

关于spring - org.apache.kafka.common.errors.RecordTooLargeException : The request included a message larger than the max message size the server will accept 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55181375/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com