FAILED:Event exceeds the maximum length(512 chars, including newline)

Flume接收消息出现字符过长

使用Flume的过程中,模拟网络发送数据的时候出现如下问题:

​FAILED:Event exceeds the maximum length(512 chars, including newline)​

如图所示

Flume接收消息出现FAILED:Event exceeds the maximum length(512 chars, including newline)_big data


由于在配置文件中没有配置接收数据的最大长度,而默认是512字符,但我发送的数据字符是远大于512的,所以会出现此问题。

解决办法就是在配置文件中增加接收数据最大长度的配置信息,具体如下:

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

其中,a1, r1, 为配置文件中自定的变量名,记得换成你自己的,10240位容量,可自定义。

Flume接收消息出现FAILED:Event exceeds the maximum length(512 chars, including newline)_big data_02


最后,解决问题。

Flume接收消息出现FAILED:Event exceeds the maximum length(512 chars, including newline)_linux_03