请知悉:本文最近一次更新为 5年 前,文中内容可能已经过时。

Flume使用NetCat模式的时候,遇到POST特别大的数据的时候,客户端会报错:

Event exceeds the maximum length

服务端会输出:

Client sent event exceeding the maximum length

解决办法也很简单,参考官方参数说明,配置max-line-length到适当值即可(默认是512字节),示例:

a1.sources.r1.max-line-length = 10240

参考文档:https://flume.apache.org/FlumeUserGuide.html

测试用指令:

curl -F "file=@1" "https://127.0.0.1:8001"

如您从本文得到了有价值的信息或帮助,请考虑扫描文末二维码捐赠和鼓励。

尊重他人劳动成果。转载请务必附上原文链接,我将感激不尽。


与《Flume Event exceeds the maximum length Client sent event exceeding the maximum length解决办法》相关的博文:


留言

avatar
😀
😀😁😂😅😭🤭😋😘🤔😰😱🤪💪👍👎🤝🌹👌