...
This section includes a description of the Multi Directory Collection Strategy that is applied in with the Disk, FTP, FTPS, HDFS, SCP and SFTP Collection agents.
Overview
The Multi Directory Collection Strategy enables you to configure a collection agent to collect data from a series of directories that are listed in a control file. The collection agent reads the control file and collects from the specified directories.
Configuration
You configure the Multi Directory Collection Strategy from the Disk tab for Disk Collection agent, the HDFS tab for the HDFS Collection agent and the Source tab for FTP, FTPS, SCP and SFTP Collection agents in the agent configuration view.
To Configure the Multi Directory Collection Strategy:
The collection agent configuration dialog
Setting | Description | |||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
From the drop-down list select Multi Directory. | ||||||||||||||||||||||||||||||
Enter the path and the name of the control TXT-file.
| ||||||||||||||||||||||||||||||
Filename | The regular expression of the names of the source files on the local file system. Regular expressions according to Java syntax applies. For further information, see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/regex/Pattern.html.
| |||||||||||||||||||||||||||||
Select this check box to abort the workflow if a directory, that is specified on the control file list, is missing on the server. Otherwise, the workflow continues to execute (default). | ||||||||||||||||||||||||||||||
Select this check box to prevent collection of the same file more than once. Files are considered to be duplicate if the absolute filename is the same. The workflow holds an internal data structure with information about which files the collector has collected in previous executions. The data structure is purged by the collection strategy based on the contents of the collection directories. If files collected in the past are no longer found in the collection directory they are removed from the data structure.
It is possible to manually purge the internal duplicate data structure if needed. To do this, disable duplicate filter and run the workflow. The next time duplicate filter is enabled the internal data structure will be empty. | ||||||||||||||||||||||||||||||
Select this check box to to enable generation of error or debug messages.
| ||||||||||||||||||||||||||||||
Use File Reference/Route File Reference UDR | Select this check box if you want to forward the data to an SQL Loader agent. See the description of SQL Loader(3.0) for more information. |