keedio / flume-ng-sql-source

Flume Source to import data from SQL Databases

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

参照样例出现如下异常ERROR

ray198471 opened this issue · comments

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

(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

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

  • use english
  • add config file
  • add full trace log.
  • check for property
# 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.
不要自己先行创建这个文件,不然程序跑起来后没权限写不进去