FTP
This page describes the usage of the Stream Reactor FTP Source Connector.
Connector Class
io.lenses.streamreactor.connect.ftp.source.FtpSourceConnectorExample
name=ftp-source
connector.class=io.lenses.streamreactor.connect.ftp.source.FtpSourceConnector
tasks.max=1
#server settings
connect.ftp.address=localhost:21
connect.ftp.user=ftp
connect.ftp.password=ftp
#refresh rate, every minute
connect.ftp.refresh=PT1M
#ignore files older than 14 days.
connect.ftp.file.maxage=P14D
#monitor /forecasts/weather/ and /logs/ for appends to files.
#any updates go to the topics `weather` and `error-logs` respectively.
connect.ftp.monitor.tail=/forecasts/weather/:weather,/logs/:error-logs
#keep an eye on /statuses/, files are retrieved as a whole and sent to topic `status`
connect.ftp.monitor.update=/statuses/:status
#keystyle controls the format of the key and can be string or struct.
#string only provides the file name
#struct provides a structure with the filename and offset
connect.ftp.keystyle=structData types
Tailing Versus Update as a Whole
Data converters
Option Reference
Name
Description
Type
Default Value
Last updated
Was this helpful?

