Перейти к основному содержимому

ListFile

Описание

Извлекает список файлов из входного каталога. Для каждого файла создает FlowFile, представляющий файл, чтобы его можно было извлечь в сочетании с FetchFile. Этот процессор предназначен для работы только на основном узле в кластере, если местоположение входного каталога установлено как "Remote". Если основной узел изменится, новый основной узел продолжит с того места, где остановился предыдущий, без дублирования всех данных. Если местоположение входного каталога установлено как "Local", режим выполнения может быть любым, и синхронизация не будет происходить. В отличие от GetFile, этот процессор не удаляет данные из локальной файловой системы.

Теги

file, get, list, ingest, source, filesystem

Свойства

НазваниеОписание
Input DirectoryNo description provided. Поддерживает язык выражений: true (будет оцениваться только с использованием переменных среды)
Listing StrategySpecify how to determine new/updated entities. See each strategy descriptions for detail.
Recurse SubdirectoriesNo description provided.
Record WriterSpecifies 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.
Input Directory LocationNo description provided.
File FilterNo description provided.
Path FilterWhen Recurse Subdirectories is true, then only subdirectories whose path matches the given regular expression will be scanned
Include File AttributesWhether or not to include information such as the file's Last Modified Time and Owner as FlowFile Attributes. Depending on the File System being used, gathering this information can be expensive and as a result should be disabled. This is especially true of remote file shares.
Minimum File AgeThe minimum age that a file must be in order to be pulled; any file younger than this amount of time (according to last modification date) will be ignored
Maximum File AgeThe maximum age that a file must be in order to be pulled; any file older than this amount of time (according to last modification date) will be ignored
Minimum File SizeNo description provided.
Maximum File SizeNo description provided.
Ignore Hidden FilesNo description provided.
Target System Timestamp PrecisionSpecify 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 CacheListed 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 WindowSpecify 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 TargetSpecify how initial listing should be handled. Used by 'Tracking Entities' strategy.
Entity Tracking Node IdentifierThe configured value will be appended to the cache key so that listing state can be tracked per NiFi node rather than cluster wide when tracking state is scoped to LOCAL. Used by 'Tracking Entities' strategy. Поддерживает язык выражений: true (будет оцениваться только с использованием переменных среды)
track-performanceNo description provided.
max-performance-metricsNo description provided. Поддерживает язык выражений: true (будет оцениваться только с использованием переменных среды)
max-operation-timeNo description provided. Поддерживает язык выражений: true (будет оцениваться только с использованием переменных среды)
max-listing-timeNo description provided. Поддерживает язык выражений: true (будет оцениваться только с использованием переменных среды)

Взаимосвязи

  • success: все полученные файлы Flow направляются на этап успеха