SmbClientProviderService
Implementation: SmbjClientProviderService
Specifies the SMB client provider to use for creating SMB connections. | Listing Strategy | listing-strategy | Tracking Timestamps | - Tracking Entities
- No Tracking
- Tracking Timestamps
| Specify how to determine new/updated entities. See each strategy descriptions for detail. |
Input Directory | directory | | | The network folder from which to list files. This is the remaining relative path after the share: smb://HOSTNAME:PORT/SHARE/[DIRECTORY]/sub/directories. It is also possible to add subdirectories. The given path on the remote file share must exist. This can be checked using verification. You may mix Windows and Linux-style directory separators. |
File Name Suffix Filter | file-name-suffix-filter | | | Files ending with the given suffix will be omitted. Can be used to make sure that files that are still uploading are not listed multiple times, by having those files have a suffix and remove the suffix once the upload finishes. This is highly recommended when using 'Tracking Entities' or 'Tracking Timestamps' listing strategies. |
Record Writer | record-writer | | Controller Service API: RecordSetWriterFactory Implementations: ScriptedRecordSetWriter ParquetRecordSetWriter RecordSetWriterLookup CSVRecordSetWriter FreeFormTextRecordSetWriter JsonRecordSetWriter AvroRecordSetWriter XMLRecordSetWriter | Specifies the Record Writer to use for creating the listing. If not specified, one FlowFile will be created for each entity that is listed. If the Record Writer is specified, all entities will be written to a single FlowFile instead of adding attributes to individual FlowFiles. |
Minimum File Age | min-file-age | 5 secs | | The minimum age that a file must be in order to be listed; any file younger than this amount of time will be ignored. |
Maximum File Age | max-file-age | | | Any file older than the given value will be omitted. |
Minimum File Size | min-file-size | | | Any file smaller than the given value will be omitted. |
Maximum File Size | max-file-size | | | Any file larger than the given value will be omitted. |
Target System Timestamp Precision | target-system-timestamp-precision | Auto Detect | - Auto Detect
- Milliseconds
- Seconds
- Minutes
| Specify timestamp precision at the target system. Since this processor uses timestamp of entities to decide which should be listed, it is crucial to use the right timestamp precision. |
Entity Tracking State Cache | et-state-cache | | Controller Service API: DistributedMapCacheClient Implementations: RedisDistributedMapCacheClientService HBase_2_ClientMapCacheService DistributedMapCacheClientService CouchbaseMapCacheClient SimpleRedisDistributedMapCacheClientService HazelcastMapCacheClient CassandraDistributedMapCache | Listed entities are stored in the specified cache storage so that this processor can resume listing across NiFi restart or in case of primary node change. 'Tracking Entities' strategy require tracking information of all listed entities within the last 'Tracking Time Window'. To support large number of entities, the strategy uses DistributedMapCache instead of managed state. Cache key format is 'ListedEntities::{processorId}(::{nodeId})'. If it tracks per node listed entities, then the optional '::{nodeId}' part is added to manage state separately. E.g. cluster wide cache key = 'ListedEntities::8dda2321-0164-1000-50fa-3042fe7d6a7b', per node cache key = 'ListedEntities::8dda2321-0164-1000-50fa-3042fe7d6a7b::nifi-node3' The stored cache content is Gzipped JSON string. The cache key will be deleted when target listing configuration is changed. Used by 'Tracking Entities' strategy. |
Entity Tracking Time Window | et-time-window | 3 hours | | Specify how long this processor should track already-listed entities. 'Tracking Entities' strategy can pick any entity whose timestamp is inside the specified time window. For example, if set to '30 minutes', any entity having timestamp in recent 30 minutes will be the listing target when this processor runs. A listed entity is considered 'new/updated' and a FlowFile is emitted if one of following condition meets: 1. does not exist in the already-listed entities, 2. has newer timestamp than the cached entity, 3. has different size than the cached entity. If a cached entity's timestamp becomes older than specified time window, that entity will be removed from the cached already-listed entities. Used by 'Tracking Entities' strategy. Supports Expression Language: true (will be evaluated using variable registry only) |
Entity Tracking Initial Listing Target | et-initial-listing-target | All Available | - Tracking Time Window
- All Available
| Specify how initial listing should be handled. Used by 'Tracking Entities' strategy. |
Relationships:
Name | Description |
---|
success | All FlowFiles that are received are routed to success |
Reads Attributes:
None specified.Writes Attributes:
Name | Description |
---|
filename | The name of the file that was read from filesystem. |
shortName | The short name of the file that was read from filesystem. |
path | The path is set to the relative path of the file's directory on the remote filesystem compared to the Share root directory. For example, for a given remote locationsmb://HOSTNAME:PORT/SHARE/DIRECTORY, and a file is being listed from smb://HOSTNAME:PORT/SHARE/DIRECTORY/sub/folder/file then the path attribute will be set to "DIRECTORY/sub/folder". |
serviceLocation | The SMB URL of the share. |
lastModifiedTime | The timestamp of when the file's content changed in the filesystem as 'yyyy-MM-dd'T'HH:mm:ss'. |
creationTime | The timestamp of when the file was created in the filesystem as 'yyyy-MM-dd'T'HH:mm:ss'. |
lastAccessTime | The timestamp of when the file was accessed in the filesystem as 'yyyy-MM-dd'T'HH:mm:ss'. |
changeTime | The timestamp of when the file's attributes was changed in the filesystem as 'yyyy-MM-dd'T'HH:mm:ss'. |
size | The size of the file in bytes. |
allocationSize | The number of bytes allocated for the file on the server. |
State management:
Scope | Description |
---|
CLUSTER | After performing a listing of files, the state of the previous listing can be stored in order to list files continuously without duplication. |
Restricted:
This component is not restricted.Input requirement:
This component does not allow an incoming relationship.System Resource Considerations:
None specified.See Also:
PutSmbFile, GetSmbFile, FetchSmb