dairui130

导航

flume遇到的问题

Caused by: java.lang.IllegalStateException: Unable to add FlumeEventPointer [fileID=25, offset=1000217047]. Queue depth = 100000, Capacity = 100000

 

原因:checkpoint文件夹,不为空。

解决:设置空的checkpoint文件夹。或删除checkpoint文件夹下的内容。

 

java.lang.OutOfMemoryError: Java heap space

原因:java堆内存默认20m,数据量大时oom。

解决:

export JAVA_OPTS="-Xms2048m -Xmx2048m -Xss256k -Xmn1g -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:-UseGCOverheadLimit"

并且在flume启动脚本flume-ng中,修改JAVA_OPTS="-Xmx20m"为JAVA_OPTS="-Xmx2048m"
cdh可以直接在cdh manager中设置flume的java堆内存。

 

java.lang.IllegalStateException: File Channel transaction capacity cannot be greater than the capacity of the channel.
transaction capacity应当小于capacity of the channel.

 

posted on 2019-03-04 16:57  dairui130  阅读(1156)  评论(0编辑  收藏  举报