kafka消息超过一定大小会报错如下: The message is 2044510 bytes when serialized which is larger than the maximum request size you have configured with the max.request.size configuration. 配置以下配置设置最大上传大小解决:kafka:bootstrap-servers: xxx#生产者producer:# key/value的序列化key-serializer: or...
java.lang.RuntimeException: java.util.concurrent.ExecutionException: org.apache.kafka.common.errors.RecordTooLargeException: The message is 1625221 bytes when serialized which is larger than the maximum request size you have configured with the max.request.size configuration. at com.alibaba.otter.canal...
如果kafka属性是服务器上的文件,则可以更改消息大小。对于默认的sever.property文件
org.apache.kafka.common.errors.RecordTooLargeException: The message is 4370526 bytes when serialized which is larger than the maximum request size you have configured with the max.request.size configuration. org.apache.kafka.common.errors.RecordTooLargeException: The message is 4370526 bytes when seri...
private void ensureValidRecordSize(int size) { // 如果发送消息的大小比maxRequestSize大,就会抛异常 if (size > this.maxRequestSize) throw new RecordTooLargeException("The message is " + size + " bytes when serialized which is larger than the maximum request size you have configured with the...
private void ensureValidRecordSize(int size) {// 如果发送消息的大小比maxRequestSize大,就会抛异常if (size > this.maxRequestSize)throw new RecordTooLargeException("The message is " + size +" bytes when serialized which is larger than the maximum request size you have configured with the " +...
privatevoidensureValidRecordSize(int size){// 如果发送消息的大小比maxRequestSize大,就会抛异常if(size>this.maxRequestSize)thrownewRecordTooLargeException("The message is "+size+" bytes when serialized which is larger than the maximum request size you have configured with the "+ProducerConfig.MAX_R...
null,value:2095476 bytes witherror:(org.apache.kafka.clients.producer.internals.ErrorLoggingCallback)org.apache.kafka.common.errors.RecordTooLargeException:The message is 2095510 bytes when serialized which is larger than the maximum request size you have configured with the max.request.size ...
原回答者GitHub用户agapple
[Error10] MessageSizeTooLargeError: The messageis1177421byteswhenserialized whichislarger than the maximum request size you have configuredwiththe max_request_sizeconfiguration 解决方法:在实例化KafkaProducer类时添加max_request_size配置,修改默认的大小即可:...