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"
尊重他人劳动成果。如本文对您有用,可选择捐赠支持
转载请务必附上原文链接,我将感激不尽。
有什么问题可以