Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

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

Open
ray198471 opened this issue Jul 17, 2018 · 3 comments
Open

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

ray198471 opened this issue Jul 17, 2018 · 3 comments

Comments

@ray198471
Copy link

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

(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
Copy link
Contributor

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.

@wenchangming211
Copy link

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
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants