For information about using variables, refer to "variables".
| Item name | Required / Optional | Use of Variables | Description | Remarks |
|---|---|---|---|---|
| Name | Required | Not available | Enter the name on the script canvas. |
| Item name | Required / Optional | Use of Variables | Description | Remarks |
|---|---|---|---|---|
| Destination | Required | Not available | Select Global Resources.
|
|
| Local directory | Required | Available | Specify a directory path of DataSpider filesystem. Select a directory in the directory Selectr that is launched by pressing [Browse] button. |
|
| Local file/directory name | Required | Available | Specify file/directory on DataSpider files system. |
|
| Recursive processing | Optional | Not available | For specified local directory, select whether to process file/directory recursively.
|
|
| Bucket name | Required | Available | Specify Bucket. |
|
| Create a bucket when it doesn't exist | Optional | Not available | Select whether to create a bucket when specified bucket doesn't exist.
|
|
| Folder path | Required | Available | Enter Amazon S3 folder path. |
|
| Create folder when it doesn't exist | Optional | Not available | Select whether to create when the specified folder does not exist.
|
|
| Overwrite | Optional | Not available | Select whether to overwrite when file with the same name exists on the specified folder.
|
|
| Storage class | Required | Not available | Select Storage class of specified file.
|
|
| Permissions | Required | Not available | Select the access permission of the specified file.
|
|
| Include permissions in result | Optional | Not available | Select whether to include file access right information in the results.
|
| Item name | Required / Optional | Use of Variables | Description | Remarks |
|---|---|---|---|---|
| Encryption | Required | Not available | Select whether to encrypt file or not.
|
|
| Public Key | Required | Available | Enter file path of public key to encrypt.
Click [Browse] button to activate the file Selectr and Select the file. |
|
| Item name | Required / Optional | Use of Variables | Description | Remarks |
|---|---|---|---|---|
| Mass data processing | Required | Not available | Select a data processing method.
|
|
| Item name | Required / Optional | Use of Variables | Description | Remarks |
|---|---|---|---|---|
| Comment | Optional | Not available | You can write a short description of this adapter. The description will be reflected in the specifications. |
<?xml version="1.0"?>
<server>
<bucket name="" status="" >
<file etag="" localpath="" name="" public="" remotepath="" size="" status="" storageclass="" type="" updated="" />
</bucket>
</server>
| Element Name | Attribute Name | Description | Remarks |
|---|---|---|---|
| server | - | ||
| bucket | - | Appear in each Bucket which is gotten. | |
| name | Output the name of the retrieved bucket. | ||
| status | Output the status of the retrieved bucket.
|
||
| file | - | Appear in each written file/folder. | |
| etag | Output ETag of each written file/folder. |
|
|
| localpath | Output local path of written file/folder. |
|
|
| name | Output name of written file/folder. |
|
|
| public |
Output access right of written files/folder.
|
|
|
| remotepath | Output file path of Amazon S3 written file/folder. |
|
|
| size | Output size of written file / folder. The unit is byte. |
|
|
| status | Output status of written file/folder.
|
||
| storageclass |
Output Storage Class of the gotten file/folder.
|
|
|
| type | Output classification of written file/folder.
|
||
| updated | Output the latest update date of written file/folder. |
|
See "Edit Schema" for details with regards to defining a schema.
| Component variable name | Description | Remarks |
|---|---|---|
| count | Return the number which is the total number of the written folder number and file number. |
|
| folder_count | Return the number of written folder. |
|
| file_count | Return the number of written file. |
|
| message_category | Stroes the category to which corresponding message code belongs to, when an error occurs. |
|
| message_code | Stores its corresponding message code of occured error. |
|
| message_level | Stores the severity of the corresponding message code of the occured error. |
|
| error_type | Stores the type of the occured error. |
|
| error_message | Stores the error message for the occured error. |
|
| error_trace | Stores stack trace of the occurred error. |
|
| Unable to build cipher: Illegal key size Make sure you have the JCE unlimited strength policy files installed and configured for your JVM |
We recommend taking backups of policy file just in case.| Exception name | Causes | Solution |
|---|---|---|
| ResourceNotFoundException Resource definition could not be found.Name: [] |
[Destination] is not specified. | Please specify [Destination]. |
| ResourceNotFoundException Resource definition could not be found.Name: [<name of Global Resources>] |
Resource definition selected in [Destination] is not found. | Please check the global resource specified in [Destination]. |
| InvalidPropertyConfigurationException <Property Name> is not specified. |
[<Property Name>] is not specified. | Please specify [<Property Name>]. |
| InvalidPropertyConfigurationException Local file/directory name includes "/" . |
[Local file/directory name] includes "/". | Please specify the file/folder name which does not include "/" in [Local file/directory name]. |
| InvalidPropertyConfigurationException Public key is not set. |
[Public Key] is not specified. | Specify [Public Key], or Specify [Client side] value to [Encryption]. |
| InvalidPropertyConfigurationException Specified public key does not exist. |
File path specified in [Public Key] does not exist. | Specify the existing file path to [Public Key]. |
| InvalidPropertyConfigurationException Specified public key is directory. |
[Public Key] is set as directory path. | Specify file path for [Public Key]. |
| Status Code: 403, AWS Request ID: XXXXXXXXXXXXXXXX, AWS Error Code: InvalidAccessKeyId, AWS Error Message: The AWS Access Key Id you provided does not exist in our records., S3 Extended Request ID: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX | [Access Key ID] of global resources specified in [Destination] is not correct. | Check the settings of the global resource specified in [Destination]. |
| Status Code: 403, AWS Request ID: XXXXXXXXXXXXXXXX, AWS Error Code: SignatureDoesNotMatch, AWS Error Message: The request signature we calculated does not match the signature you provided. Check your key and signing method., S3 Extended Request ID: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX | [Secret Access Key] of the global resources specified in [Destination] is incorrect. | Check the settings of the global resource specified in [Destination]. |
| com.amazonaws.SdkClientException Unable to execute HTTP request: <endpoint> |
[Endpoint] of the global resource specified in [Destination] is incorrect. | Check the settings of the global resource specified in [Destination]. |
| Key | Location | Description | Remarks |
|---|---|---|---|
| itemmaxsize | $DATASPIDER_HOME/server/plugin/data_processing/modules/amazon_s3_adapter/META-INF/ adapter.properties |
The setting procedure is as follows.
|
|
| [Endpoint] Setting | The Region Bucket | Remarks |
|---|---|---|
| Not set | US Standard | |
| s3.amazonaws.com | US Standard | |
| s3-us-west-1.amazonaws.com | US-West (Northern California) | |
| s3-ap-southeast-1.amazonaws.com | Asia Pacific (Singapore) |