ListSmb
Описание
Список конкретных файлов, расшаренных через протокол SMB. Каждый переч исленный файл может привести к созданию одного FlowFile, метаданные записываются как атрибуты FlowFile. Или – если свойство 'Record Writer' установлено – весь результат записывается как записи в один FlowFile. Этот процессор предназначен для работы только на первичном узле в кластере. Если первичный узел изменится, новый первичный узел продолжит с того места, где остановился предыдущий, без дублирования данных.
Теги
samba, smb, cifs, files, list
Свойства
Название | Описание |
---|---|
SMB Client Provider Service | Указывает поставщика SMB-клиента, используемого для создания SMB-соединений. |
Listing Strategy | Specify how to determine new/updated entities. See each strategy descriptions for detail. |
Input Directory | Сетевая папка, из которой необходимо вывести список файлов. Это оставшийся относительный путь после общего ресурса: smb://ИМЯ_ХОСТА:ПОРТ/ОБЩИЙ_РЕСУРС/[ПАПКА]/подк аталоги. Также можно добавить подкаталоги. Указанный путь на удалённом общем ресурсе должен существовать. Это можно проверить с помощью проверки. Можно смешивать разделители каталогов в стиле Windows и Linux. |
File Name Suffix Filter | Файлы, заканчивающиеся заданным суффиксом, будут пропущены. Можно использовать для того, чтобы файлы, которые все еще загружаются, не отображались несколько раз, добавив к ним суффикс и удалив его после завершения загрузки. Это настоятельно рекомендуется при использовании стратегий отображения «Отслеживание сущностей» или «Отслеживание временных меток». |
Record Writer | 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 | Минимальный возраст файла, необходимый для включения в список; любой файл, созданный позднее этого времени, будет проигнорирован. |
Maximum File Age | Любой файл старше указанного значения будет исключён. |
Minimum File Size | Любой файл меньше указанного значения будет исключё н. |
Maximum File Size | Любой файл, размер которого превышает заданное значение, будет исключен. |
Target System Timestamp Precision | 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 | 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 | 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. Поддерживает язык выражений: true (будет оцениваться только с использованием переменных среды) |
Entity Tracking Initial Listing Target | Specify how initial listing should be handled. Used by 'Tracking Entities' strategy. |
Взаимосвязи
- success: все полученные файлы Flow направляются на этап успеха