Open ray198471 opened 6 years ago
hi ray198471, to be able to help you, could yo please:
# Status file is used to save last readed row
agent.sources.sqlSource.status.file.path = /var/log/flume
agent.sources.sqlSource.status.file.name = sqlSource.status
try deleting status file and restart agent.
best Luis.
I don't want to try to delete the status file. If deleted, the index will be reset. How can I solve this problem?
it seems like a file permission problem. don't try creating the status file by urself before running and let flume do itself, or flume won't have writing permission of this file. 不要自己先行创建这个文件,不然程序跑起来后没权限写不进去
我参照样例测试读取我的数据库里的数据,每次启动都有如下的异常
(conf-file-poller-0) [ERROR - org.keedio.flume.source.SQLSourceHelper.getStatusFileIndex(SQLSourceHelper.java:236)] Exception reading status file, doing back up and creating new status fileUnexpected exception at position -1: null