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

Flume restarts with custom query pulls data from beginnning only #56

Open
Aravindk47 opened this issue Apr 16, 2018 · 1 comment
Open

Comments

@Aravindk47
Copy link

Hi ,

I am using Cloudera distribution and my Flume version is 1.6 as mentioned in the CDH

flume-ng-1.6.0+cdh5.11.1+160

Custom query to an Oracle sql source is not working as expected. Below is the configuration for custom query
agent.sources.sql-source.type = org.keedio.flume.source.SQLSource
agent.sources.sql-source.start.from = 62010
agent.sources.sql-source.custom.query = select id , columns from (select id,columns,rownum as iden fromsometable) where iden > $@$

agent.sources.sql-source.status.file.path =
agent.sources.sql-source.status.file.name = sql-source-fail-recovery.status
agent.sources.sql-source.status.column = ID

My ID is not a primary key and hence I am using rownum from oracle.

My status file does not have any details it just has a {}. After each restart , I am seeing that flume pulls record from the start.

@lazaromedina
Copy link
Contributor

Hi akrishnankogentix,
can you please?

  • flume-ng-sql version.
  • log from flume service from Cloudera.

best

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

2 participants