flume配置没错,自定义拦截器也没有错误 在flume的配置文件中加上和减去拦截器会报如下错误

发布于:2022-08-05 ⋅ 阅读:(286) ⋅ 点赞:(0)

WARN  [conf-file-poller-0] (org.apache.flume.conf.FlumeConfiguration$AgentConfiguration.validateConfigFilterSet:623)  - Agent configuration for 'a1' has no configfilters.
04 八月 2022 14:29:02,251 WARN  [conf-file-poller-0] (org.apache.flume.conf.FlumeConfiguration$AgentConfiguration.validateSinks:809)  - Agent configuration for 'a1' has no sinks.

(PollableSourceRunner-KafkaSource-r1) [ERROR - org.apache.flume.source.kafka.KafkaSource.doProcess(KafkaSource.java:330)] KafkaSource EXCEPTION, {}
java.lang.NullPointerException
 at com.guozhi.flume.interceptor.TimestampInterceptor.intercept(TimestampInterceptor.java:21)
 at com.guozhi.flume.interceptor.TimestampInterceptor.intercept(TimestampInterceptor.java:28)
 at org.apache.flume.interceptor.InterceptorChain.intercept(InterceptorChain.java:62)
 at org.apache.flume.channel.ChannelProcessor.processEventBatch(ChannelProcessor.java:148)
 at org.apache.flume.source.kafka.KafkaSource.doProcess(KafkaSource.java:311)
 at org.apache.flume.source.AbstractPollableSource.process(AbstractPollableSource.java:60)
 at org.apache.flume.source.PollableSourceRunner$PollingRunner.run(PollableSourceRunner.java:133)
 at java.lang.Thread.run(Thread.java:748)

cased by  java.lang.InnTer      ...more  10  之类的错误

问题解决:

修改checkpointdir目录地址:

   

 


今日签到

点亮在社区的每一天
去签到