Component family |
Cloud/AmazonS3 |
|
Function |
Puts a file on to Amazon S3. |
|
Purpose |
tS3Put is designed to put a file |
|
Basic settings |
Use existing connection |
Select this check box and in the Component List click the |
Access Key |
The Access Key ID that uniquely identifies an AWS Account. For how |
|
|
Access Secret |
The Secret Access Key, constituting the security credentials in To enter the secret key, click the […] button next to |
|
Region |
Specify the AWS region by selecting a region name from the list or entering a region |
|
Bucket |
Name of the bucket on the S3 server. |
|
Key |
Name of the file to be saved on the S3 server. |
|
File |
Name of the local file to be uploaded to the S3 server. |
|
Die on error |
This check box is cleared by default, meaning to skip the row on |
Advanced settings |
Config client |
Select this check box to configure client parameters. Client parameter: select client Value: enter the parameter Not available when Use existing |
tStatCatcher Statistics |
Select this check box to collect log data at the component |
|
Dynamic settings |
Click the [+] button to add a row in the table and fill Once a dynamic parameter is defined, the Component List For more information on Dynamic settings and context |
|
Global Variables |
ERROR_MESSAGE: the error message generated by the A Flow variable functions during the execution of a component while an After variable To fill up a field or expression with a variable, press Ctrl + For further information about variables, see Talend Studio |
|
Usage |
This component can be used alone or with other S3 components, e.g. |
|
Log4j |
The activity of this component can be logged using the log4j feature. For more information on this feature, see Talend Studio User For more information on the log4j logging levels, see the Apache documentation at http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/Level.html. |
|
Limitation |
Due to license incompatibility, one or more JARs required to use this component are not |
In this scenario, tS3Put is used to send a file to
the Amazon S3 server while tS3Get is used to get that
file.
-
Drop tS3Connection, tS3Put and tS3Get onto the
workspace. -
Link tS3Connection to tS3Put using the OnSubjobOk trigger.
-
Link tS3Put to tS3Get using the OnSubjobOk
trigger.
-
Double-click tS3Connection to open its
Basic settings view. -
In the Access Key and Secret Key fields, enter the authentication
credentials. -
Double-click tS3Put to open its Basic settings view.
-
Select the Use existing connection check
box to reuse the connection. -
In the Bucket field, enter the bucket
name. -
In the Key field, enter the name of the
file to be saved on the S3 server. -
In the File field, enter the file to be
uploaded to the S3 server. -
Double-click tS3Get to open its Basic settings view.
-
Select the Use existing connection check
box to reuse the connection. -
In the Bucket field, enter the bucket
name. -
In the Key field, enter the name of the
file to be retrieved from the S3 server. -
In the File field, enter the local name
of the retrieved file.
-
Press Ctrl + S to save the Job.
-
Press F6 to run the Job.
-
Go to the S3 web console:
As shown above, the file has been put on to the S3 server.
-
Refresh the S3 Browser client:
This shows that the S3 Put action was performed successfully.
-
Go to the folder where the retrieved file is saved locally:
As shown above, the remote file is retrieved to the local disk, proof that
the S3 Get action was performed successfully.