On this Page
Table of Contents | ||||
---|---|---|---|---|
|
Snap type: | Read | |||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Description: | This Snap reads binary data from various sources such as SLDB, HTTP, S3, SFTP, HDFS, and produces a binary data stream at the output. Unlike the File Reader Snap, this Snap can read more than one file in the given directory and its subdirectories recursively.
| |||||||||||||||||||||||||||||||||||||||||||||
Prerequisites: |
| |||||||||||||||||||||||||||||||||||||||||||||
Support and limitations: |
| |||||||||||||||||||||||||||||||||||||||||||||
Account: | This Snap uses account references created on the Accounts page of SnapLogic Manager to handle access to this endpoint. This Snap supports a Basic auth account, an AWS S3 auth account, SSH Auth account, SMB account, or no account. See Configuring Binary Accounts for information on setting up accounts that work with this Snap. Account types supported by each protocol are as follows:
Required settings for account types are as follows:
| |||||||||||||||||||||||||||||||||||||||||||||
Views: |
| |||||||||||||||||||||||||||||||||||||||||||||
Settings | ||||||||||||||||||||||||||||||||||||||||||||||
Label | Required. The name for the Snap. You can modify this to be more specific, especially if you have more than one of the same Snap in your pipeline. | |||||||||||||||||||||||||||||||||||||||||||||
Selected Files | A table property, which consists of three columns: Folder/File, Wildcard Regex, and Include Subfolders. A user can specify one or more data sources by clicking the + button. | |||||||||||||||||||||||||||||||||||||||||||||
Folder/File | The URL for the data source and can be a directory or a file. It should start with a file protocol. The supported file protocols are:
The File property should have the syntax:
Example:
Default value: [None] | |||||||||||||||||||||||||||||||||||||||||||||
Wildcard | A wildcard pattern, if the URL in the Folder/File property is for a directory. All files matching the wildcard pattern are selected. This property is not supported for the sldb, http, and https protocols. The asterisk pattern character ("*", also called "star") and the question mark ("?") are supported. The "*" character matches zero or more characters. The "?" matches exactly one character.
Default value: [None] | |||||||||||||||||||||||||||||||||||||||||||||
Include Subfolders | If the Include Subfolders property is true and the Folder/File property is for a folder, all files in the subfolders matching the given wildcard pattern are selected. | |||||||||||||||||||||||||||||||||||||||||||||
Number of retries | Specifies the maximum number of retry attempts that the Snap must make in case there is a network failure, and the Snap is unable to read the target file. If the value is larger than 0, the Snap first downloads the target file to a temporary local file. If any error occurs during the download, the Snap waits for the time specified in the Retry interval and attempts to download the file again from the beginning. When the download is successful, the Snap starts to stream the data from the temporary file to the downstream pipeline. All temporary local files are deleted when they are no longer needed.
Example: 3 Minimum value: 0 Default value: 0
| |||||||||||||||||||||||||||||||||||||||||||||
Retry interval (seconds) | Specifies the minimum number of seconds for which the Snap must wait before attempting recovery from a network failure. Example: 3 Minimum value: 1 Default value: 1 | |||||||||||||||||||||||||||||||||||||||||||||
|
| |||||||||||||||||||||||||||||||||||||||||||||
|
|
Note |
---|
The pipeline validation (achieved by pressing "Retry") imposes a 5-minute timeout. If there are a large number of files to be read by the Snap as a result of Wildcard and Include subfolders settings, the Snap validation may fail due to this 5-minute timeout limit. |
Output Fields for the Different Protocols
The output fields that the Multi File Reader Snap generates depends on the protocol you select. The following table lists the output fields for the different protocols supported by the Snap:
Protocol | Output Fields |
---|---|
S3 |
|
SLDB |
|
|
|
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|