FTP/SFTP connector example


FTP/SFTP connector example

Parent document: FTP 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.legacy.ftp.source.FtpInputFormat",
      "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"
        }
      ]
    }
  }
}