FTP/SFTP-v1 connector example
FTP/SFTP-v1 connector example
Parent document: FTP-v1 connector
The following configuration shows how to organize parameter configuration to read the following CSV format file.
- Example CSV data
c1,c2
aaa,bbb
- Configuration file used to read the above file:
{
"job": {
"reader": {
"class": "com.bytedance.bitsail.connector.ftp.source.FtpSource",
"protocol":"FTP",
"host": "localhost",
"port": 21,
"user": "user",
"password": "password",
"path_list": "/upload/",
"success_file_path": "/upload/_SUCCESS",
"content_type": "csv",
"columns": [
{
"name": "c1",
"type": "string"
},
{
"name": "c2",
"type": "string"
}
]
}
}
}