flume启动报错:ERROR flume.SinkRunner:

收藏
flume
7
Feb 1, 2018
ERROR flume.SinkRunner: Unable to deliver event. Exception follows. org.apache.flume.EventDeliveryException: java.lang.NullPointerException: Expected timestamp in the Flume event headers, but it was null

 

回答

般若回答

问题分析,

原因的inputCharset属性的默认值UTF-8,但是所读取的日志文件的字符集却是GBK

问题解决方法

更改一下这个属性值就可以了

a1.sources.r1.inputCharset = GBK

 

(0)

提交成功