Flume Event exceeds the maximum length Client sent event exceeding the maximum length解决办法

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" "http://127.0.0.1:8001"

未经允许不得转载:阿藏博客 » Flume Event exceeds the maximum length Client sent event exceeding the maximum length解决办法