首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >包含maxRequestSize的春季云流卡夫卡绑定版本是什么?

包含maxRequestSize的春季云流卡夫卡绑定版本是什么?
EN

Stack Overflow用户
提问于 2017-03-22 20:58:59
回答 1查看 547关注 0票数 0

当将事件发布到kafka主题时,我会遇到以下异常

代码语言:javascript
运行
复制
org.apache.kafka.common.errors.RecordTooLargeException: The message is 2063239 bytes when serialized which is larger than the maximum request size you have configured with the max.request.size configuration.

我看了https://github.com/spring-cloud/spring-cloud-stream/issues/587

我正在使用下面的spring云版本,没有在我的pom中为spring-cloud-stream-kafka-binder提供任何版本。

代码语言:javascript
运行
复制
<spring-cloud-stream.version>Brooklyn.SR3</spring-cloud-stream.version>
<spring-cloud.version>Brixton.SR7</spring-cloud.version>

,为了使用这个属性,我应该使用什么spring云流版jar?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2017-03-22 21:59:23

对于布鲁克林(binder 1.1.2),使用通用的configuration属性地图.

代码语言:javascript
运行
复制
spring.cloud.stream.kafka.binder.configuration.max.request.size=

对于全局设置或

代码语言:javascript
运行
复制
spring.cloud.stream.kafka.bindings.<dest>.producer.configuration.max.request.size=

对于特定的目的地(例如output)。

票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/42962552

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档