The request included a message larger than the max message size the server will accept.

Posted 雅冰石

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了The request included a message larger than the max message size the server will accept.相关的知识,希望对你有一定的参考价值。

一 问题描述

The request included a message larger than the max message size the server will accept
2021-06-18 15:43:34.665 [pool-143-thread-1] ERROR c.a.o.canal.connector.kafka.producer.CanalKafkaProducer - java.util.concurrent.ExecutionException: org.apache.kafka.common.errors.RecordTooLargeException: The request included a message larger than the max message size the server will accept.
java.lang.RuntimeException: java.util.concurrent.ExecutionException: org.apache.kafka.common.errors.RecordTooLargeException: The request included a message larger than the max message size the server will accept.
......
Caused by: org.apache.kafka.common.errors.RecordTooLargeException: The request included a message larger than the max message size the server will accept.

二 解决办法

1.修改kafka参数配置,调大message.max.bytes值,示例:
message.max.bytes=426951500
重启kafka。

2.增大canal server值:
kafka.max.request.size = 426951500

如果还是不能同步,试下把kafka里的topic删除,会自动重建。

以上是关于The request included a message larger than the max message size the server will accept.的主要内容,如果未能解决你的问题,请参考以下文章

The request included a message larger than the max message size the server will accept.

UVALive - 3938:"Ray, Pass me the dishes!"

Navigator operation requested with a context that does not include a Navigator. The context used to

Ray, Pass me the dishes!

UVA 1400 1400 - "Ray, Pass me the dishes!"(线段树)

Jenkins RestAPI调用出现Error 403 No valid crumb was included in the request