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

Problem sleep interrupted java.lang.Thread.sleep(Native Method) #81

Open
dmet6789 opened this issue Jan 15, 2019 · 0 comments
Open

Problem sleep interrupted java.lang.Thread.sleep(Native Method) #81

dmet6789 opened this issue Jan 15, 2019 · 0 comments

Comments

@dmet6789
Copy link

Hello
we have configured flume-ng-sql-source 1.5.3 in cloudera cluster 5.15 with flume 1.6.0.
we have configured a kafka channel and a hdfs sink.
We need read a complete oracle table with 2000 records with an interval of 30 seconds.
When we start the flume agent it start the agent it read the one time the 2000 records and sink it to hdfs file, but after 30 seconds it give us the error:

SQLSource | Error procesing row java.lang.InterruptedException: sleep interrupted at java.lang.Thread.sleep(Native Method) at org.keedio.flume.source.SQLSource.process(SQLSource.java:116) at org.apache.flume.source.PollableSourceRunner$PollingRunner.run(PollableSourceRunner.java:133) at java.lang.Thread.run(Thread.java:748)

Stopping sql source sqlsource ...

12:55:59.379 | INFO | HibernateHelper | Closing hibernate session

and don't read any more records.

we have configured the parameters
agent.sources.sqlsource.table = tabl1
agent.sources.sqlsource.columns.to.select = sysdate, field1, field2, field3
agent.sources.sqlsource.hibernate.dialect = org.hibernate.dialect.OracleDialect
agent.sources.sqlsource.hibernate.connection.driver_class = oracle.jdbc.OracleDriver

Thanks in advance for your help
best regards

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

1 participant