PutFile 2025.10.2.19¶
捆绑包¶
org.apache.nifi | nifi-standard-nar
描述¶
将 FlowFile 的内容写入本地文件系统
输入要求¶
REQUIRED
支持敏感的动态属性¶
false
属性¶
属性 |
描述 |
|---|---|
Conflict Resolution Strategy |
表示输出目录中已经存在同名文件时会发生什么 |
Create Missing Directories |
如果为 True,则创建缺失的目标目录。如果为 False,则 FlowFile 将受到惩罚并发送到“failure”。 |
目录 |
文件应写入的目录。您可以使用表达式语言,例如 /aa/bb/${path} |
Group |
Sets the group on the output file to the value of this attribute. You may also use expression language such as ${file.group}. |
上次修改时间 |
Sets the lastModifiedTime on the output file to the value of this attribute. Format must be yyyy-MM-dd 'T'HH:mm:ssZ. You may also use expression language such as ${file.lastModifiedTime}. |
Maximum File Count |
指定输出目录中可以存在的最大文件数 |
所有者 |
Sets the owner on the output file to the value of this attribute. You may also use expression language such as ${file.owner}. Note on many operating systems Nifi must be running as a super-user to have the permissions to set the file owner. |
权限 |
Sets the permissions on the output file to the value of this attribute. Format must be either UNIX rwxrwxrwx with a - in place of denied permissions (e.g. rw-r--r--) or an octal number (e.g. 644). You may also use expression language such as ${file.permissions}. |
限制¶
所需权限 |
解释 |
|---|---|
写入文件系统 |
使操作员能够写入 NiFi 有权访问的任何文件。 |
关系¶
名称 |
描述 |
|---|---|
failure |
由于某种原因无法写入输出目录的文件将传输到此关系中 |
success |
已成功写入输出目录的文件将传输到此关系中 |