-
Notifications
You must be signed in to change notification settings - Fork 163
Issue with the start.from property #67
Comments
Your should using custom query https://github.com/keedio/flume-ng-sql-source#custom-query There is one thing should be careful is that incremental field must be the first returned column. |
Hi mounikarudra, zhipcui: @mounikarudra, i am not sure to understand when you say:
In addition to property @zhipcui , thanks for your help:
My config files says to retrieve rows from row 86 (inclusive) onwards. Also note
I am dumpping events to file:
@zhipcui , you are almost right, in the first versions of flume-sql-source there were two restrictions about 'incremental column' to exist and to be the first retrieved. Later, there was no need to be the first column, because we added property best, Luis |
|
sorry, i meant "we added property" |
Hi,
I am unable to fetch the records from the desired index even though I specified the agent.sources.sql-source.start.from value to a number.
Here is the config file I'm using:
agent1.channels.ch1.type = memory
agent1.sources.sql-source.channels = ch1
agent1.channels = ch1
agent1.sinks = HDFS
agent1.sources = sql-source
agent1.sources.sql-source.type = org.keedio.flume.source.SQLSource
URL to connect to database (currently only mysql is supported)
agent1.sources.sql-source.connection.url = jdbc:sybase:Tds:XXXX/test
Database connection properties
agent1.sources.sql-source.user = XX
agent1.sources.sql-source.password = XXXX
agent1.sources.sql-source.table = employee
agent1.sources.sql-source.database = test
agent1.sources.sql-source.columns.to.select = *
agent1.sources.sql-source.start.from = 7
agent1.sources.sql-source.run.query.delay=10000
Status file is used to save last readed row
agent1.sources.sql-source.status.file.path = /var/lib/flume
agent1.sources.sql-source.status.file.name = sql-source.status
agent1.sinks.HDFS.channel = ch1
agent1.sinks.HDFS.type = logger
I am also unable to make use of the incremental properties. Am I missing any configuration? Please, someone, let me know. I would also like to know how exactly the status file can be used when the agent is restarted to do incremental load.
Thanks in advance.
The text was updated successfully, but these errors were encountered: