ERROR kafka.KafkaSource: KafkaSource EXCEPTION,{}
org.apache.flume.ChannelFullException: The channel has reached it's capacity. This might be the result of a sink on the channel having too low of batch size, a downstream system running slower than normal, or that the channel capacity is just too low.[channel=c2]
at org.apache.flume.channel.file.FileChannel$FileBackedTransaction.doPut(FileChannel.java:505)
at org.apache.flume.channel.BasicTransactionSemantics.put(BasicTransactionSemantics.java:93)
at org.apache.flume.channel.BasicChannelSemantics.put(BasicChannelSemantics.java:80)
at org.apache.flume.channel.ChannelProcessor.processEventBatch(ChannelProcessor.java:191)
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)
问题原因分析
主要看一下这一句:
org.apache.flume.ChannelFullException: The channel has reached it's
capacity. This might be the result of a sink on the channel having too
low of batch size, a downstream system running slower than normal, or
that the channel capacity is just too low.[channel
Kafka- flume报错:org.apache.flume.ChannelFullException: The channel has reached it‘s capacity.
场景还原:在测试环境进行数据清洗,由原始日志数据发送至HDFS,过程为:原始日志文件–>flume->kafka->flume->HDFS今天测试一亿条数据时出现问题,问题发生位置在flume->HDFS,问题整体描述如下: ERROR kafka.KafkaSource: KafkaSource EXCEPTION, {}org.apache.flume.ChannelFullException: The channel has reached it's ca.