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

使用此插件连接采集oracle数据时,刚开始采集正常,一段时间后程序卡着不动了,也没有报什么错误 #71

Open
summyer opened this issue Sep 17, 2018 · 3 comments

Comments

@summyer
Copy link

summyer commented Sep 17, 2018

改了部分代码,使其通过json字符串发送到kafka中
for(Map row:result){
String body=new Gson().toJson(row);
pw.write(body+"\n");
}

@lucarosellini
Copy link
Contributor

Hi @summyer, could you please explain your issue in English?

Thanks

@summyer
Copy link
Author

summyer commented Sep 17, 2018

ok,

When using this plugin to collect oracle data, it just started to collect normally. After a while, the program stops collecting, and no error is reported, but the process is still there; I changed some of the code to use json string when pushing to kafka.

@lazaromedina
Copy link
Contributor

Hi summyer,
try setting debug or trace mode when launching flume agent. Try dumping data to file_roll, for discarding flume-sink.
As you say there is no error reported, so it is hard to help. Also keep in mind that you changed code base, so anything can happen.
best

luw2007 pushed a commit to luw2007/flume-ng-sql-source that referenced this issue Oct 11, 2018
need change the flume configure:
coupon-201810.sources.mysql.hibernate.connection.provider_class = org.hibernate.connection.C3P0ConnectionProvider
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

3 participants