File should not roll when commit is outstanding

java.lang.IllegalStateException: File should not roll when commit is outstanding.

        at org.apache.flume.client.avro.ReliableSpoolingFileEventReader.readEvents(ReliableSpoolingFileEventReader.java:204)

        at org.apache.flume.source.SpoolDirectorySource$SpoolDirectoryRunnable.run(SpoolDirectorySource.java:160)

        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)

 

监控的目录(spooldir)里面有长度为0的文件,把他删了或者改名加后缀.COMPLETE,再重启flume(有时候直接重启也没问题了)

 

bug:https://issues.apache.org/jira/browse/FLUME-1934

 

来自:http://hi.baidu.com/tyuuxhvpgualopr/item/9a54f411f74b49fa64eabf32

posted @ 2014-06-13 10:04  悟寰轩-叶秋  阅读(482)  评论(0)    收藏  举报