Skip to main content

PutSmbFile

描述:

Writes the contents of a FlowFile to a samba network location. Use this processor instead of a cifs mounts if share access control is important.Configure the Hostname, Share and Directory accordingly: \[Hostname][Share][path\to\Directory]

标签:

samba, smb, cifs, files, put

参数:

如下列表中,必填参数则标识为加粗. 其他未加粗参数,则表示为可选参数。表中同时提到参数默认值设置, 参数还支持 表达式语言, 并且 如果将一个参数认定为"敏感", 表示是加密状态. 在输入一个敏感参数时, 确保 orchsym.properties 文件中存在属性设置 orchsym.sensitive.props.key.

名字默认值允许值列表描述
HostnameThe network host to which files should be written.
ShareThe network share to which files should be written. This is the "first folder"after the hostname: \hostname[share]\dir1\dir2
DirectoryThe network folder to which files should be written. This is the remaining relative path after the share: \hostname\share[dir1\dir2]. You may use expression language.

支持表达式语言 (支持流属性和变量)
DomainThe domain used for authentication. Optional, in most cases username and password is sufficient.
UsernameThe username used for authentication. If no username is set then anonymous authentication is attempted.
PasswordThe password used for authentication. Required if Username is set.

敏感状态
Create Missing Directoriesfalse
- true
- false
If true, then missing destination directories will be created. If false, flowfiles are penalized and sent to failure.
Share Access Strategynone
- none
- read
- read, delete
- read, write, delete
Indicates which shared access are granted on the file during the write. None is the most restrictive, but the safest setting to prevent corruption.
Conflict Resolution Strategyreplace
- replace
- ignore
- fail
Indicates what should happen when a file with the same name already exists in the output directory
Batch Size100The maximum number of files to put in each iteration

连线:

名字描述
successFiles that have been successfully written to the output network path are transferred to this relationship
failureFiles that could not be written to the output network path for some reason are transferred to this relationship

读取属性:

名字描述
filenameThe filename to use when writing the FlowFile to the network folder.

写入属性:

未提供。

状态管理:

该组件不保存状态。

限制:

该组件没有限制

输入流要求:

组件必须提供输入流。

系统资源考量:

未提供。

参考:

GetSmbFile