ListenFTP 2025.10.2.19¶
捆绑包¶
org.apache.nifi | nifi-standard-nar
描述¶
启动一个 FTP 服务器,该服务器监听指定端口,并将传入文件转换为 FlowFiles。服务的 URI 将是 ftp://{hostname}:{port}。默认值为 2221。
输入要求¶
FORBIDDEN
支持敏感的动态属性¶
false
属性¶
属性 |
描述 |
|---|---|
地址 |
FTP 服务器应绑定到的地址。如果未设置(或设置为 0.0.0.0),则服务器会绑定到所有可用地址(即主机的所有网络接口)。 |
密码 |
如果设置了用户名,则还必须指定密码。将会根据此密码检查尝试登录 FTP 服务器的客户端提供的密码。 |
端口 |
监听传入连接的端口。在 Linux 上,需要 root 权限才能使用低于 1024 的端口号。 |
SSL Context Service |
Specifies the SSL Context Service that can be used to create secure connections. If an SSL Context Service is selected, then a keystore file must also be specified in the SSL Context Service. Without a keystore file, the processor cannot be started successfully. Specifying a truststore file is optional. If a truststore file is specified, client authentication is required (the client needs to send a certificate to the server).Regardless of the selected TLS protocol, the highest available protocol is used for the connection. For example if NiFi is running on Java 11 and TLSv1.2 is selected in the controller service as the preferred TLS Protocol, TLSv1.3 will be used (regardless of TLSv1.2 being selected) because Java 11 supports TLSv1.3. |
用户名 |
允许登录 FTP 服务器的用户的名称。如果提供了用户名,则还必须提供密码。如果未指定用户名,则允许匿名连接。 |
关系¶
名称 |
描述 |
|---|---|
success |
成功接收的文件的关系。 |
写入属性¶
名称 |
描述 |
|---|---|
filename |
通过 FTP/FTPS 连接接收的文件的名称。 |
path |
指向文件目标目录的路径。例如:file.txt 上传到 /Folder1/SubFolder,则路径属性的值将是“/Folder1/SubFolder/”(注意它使用分隔符结尾)。 |