Supports Expression Language: true (will be evaluated using variable registry only)Domain | Domain | | | The domain used for authentication. Optional, in most cases username and password is sufficient. |
Username | Username | | | The username used for authentication. If no username is set then anonymous authentication is attempted. |
Password | Password | | | The password used for authentication. Required if Username is set. Sensitive Property: true |
Share Access Strategy | Share Access Strategy | none | - none
- read
- read, delete
- read, write, delete
| Indicates which shared access are granted on the file during the read. None is the most restrictive, but the safest setting to prevent corruption. |
File Filter | File Filter | | | Only files whose names match the given regular expression will be picked up |
Path Filter | Path Filter | | | When Recurse Subdirectories is true, then only subdirectories whose path matches the given regular expression will be scanned |
Batch Size | Batch Size | 10 | | The maximum number of files to pull in each iteration |
Keep Source File | Keep Source File | false | | If true, the file is not deleted after it has been copied to the Content Repository; this causes the file to be picked up continually and is useful for testing purposes. If not keeping original NiFi will need write permissions on the directory it is pulling from otherwise it will ignore the file. |
Recurse Subdirectories | Recurse Subdirectories | true | | Indicates whether or not to pull files from subdirectories |
Polling Interval | Polling Interval | 0 sec | | Indicates how long to wait before performing a directory listing |
Ignore Hidden Files | Ignore Hidden Files | true | | Indicates whether or not hidden files should be ignored |
SMB Dialect | smb-dialect | AUTO | - AUTO
- SMB 2.0.2
- SMB 2.1
- SMB 3.0
- SMB 3.0.2
- SMB 3.1.1
| The SMB dialect is negotiated between the client and the server by default to the highest common version supported by both end. In some rare cases, the client-server communication may fail with the automatically negotiated dialect. This property can be used to set the dialect explicitly (e.g. to downgrade to a lower version), when those situations would occur. |
Use Encryption | use-encryption | false | | Turns on/off encrypted communication between the client and the server. The property's behavior is SMB dialect dependent: SMB 2.x does not support encryption and the property has no effect. In case of SMB 3.x, it is a hint/request to the server to turn encryption on if the server also supports it. |
Enable DFS | enable-dfs | false | | Enables accessing Distributed File System (DFS) and following DFS links during SMB operations. |
Timeout | timeout | 5 sec | | Timeout for read and write operations. |
Relationships:
Name | Description |
---|
success | All files are routed to success |
Reads Attributes:
None specified.Writes Attributes:
Name | Description |
---|
filename | The filename is set to the name of the file on the network share |
path | The path is set to the relative path of the file's network share name. For example, if the input is set to \\hostname\share\tmp, files picked up from \tmp will have the path attribute set to tmp |
file.creationTime | The date and time that the file was created. May not work on all file systems |
file.lastModifiedTime | The date and time that the file was last modified. May not work on all file systems |
file.lastAccessTime | The date and time that the file was last accessed. May not work on all file systems |
absolute.path | The full path from where a file was picked up. This includes the hostname and the share name |
State management:
This component does not store state.Restricted:
This component is not restricted.Input requirement:
This component does not allow an incoming relationship.System Resource Considerations:
None specified.See Also:
PutSmbFile, ListSmb, FetchSmb