keedio / flume-ng-sql-source

Flume Source to import data from SQL Databases
Apache License 2.0
264 stars 164 forks source link

参照样例出现如下异常ERROR #64

Open ray198471 opened 6 years ago

ray198471 commented 6 years ago

我参照样例测试读取我的数据库里的数据,每次启动都有如下的异常

(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

lazaromedina commented 6 years ago

hi ray198471, to be able to help you, could yo please:


try deleting status file and restart agent.

best Luis.
wenchangming211 commented 5 years ago

I don't want to try to delete the status file. If deleted, the index will be reset. How can I solve this problem?

bjrjustin commented 4 years ago

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. 不要自己先行创建这个文件,不然程序跑起来后没权限写不进去