2.2.1. FTP Connector¶
The FTP connector supports moving data between an FTP server and other supported Sqoop2 connectors.
Currently only the TO direction is supported to write records to an FTP server. A FROM connector is pending (SQOOP-2127).
2.2.1.1. Usage¶
To use the FTP Connector, create a link for the connector and a job that uses the link.
2.2.1.1.1. Link Configuration¶
Inputs associated with the link configuration include:
Input | Type | Description | Example |
---|---|---|---|
FTP server hostname | String | Hostname for the FTP server. Required. | ftp.example.com |
FTP server port | Integer | Port number for the FTP server. Defaults to 21. Optional. | 2100 |
Username | String | The username to provide when connecting to the FTP server. Required. | sqoop |
Password | String | The password to provide when connecting to the FTP server. Required | sqoop |
2.2.1.1.1.1. Notes¶
- The FTP connector will attempt to connect to the FTP server as part of the link validation process. If for some reason a connection can not be established, you’ll see a corresponding warning message.
2.2.1.1.2. TO Job Configuration¶
Inputs associated with the Job configuration for the TO direction include:
Input | Type | Description | Example |
---|---|---|---|
Output directory | String | The location on the FTP server that the connector will write files to. Required | uploads |
2.2.1.1.2.1. Notes¶
- The output directory value needs to be an existing directory on the FTP server.
2.2.1.2. Loader¶
During the loading phase, the connector will create uniquely named files in the output directory for each partition of data received from the FROM connector.