Sample application to show how to use the S3OutputModule to upload files into Amazon S3 Bucket.
Operators in sample application are as follows:
Please configure the below S3OutputModule properties in src/main/resources/META-INF/properties.xml before launching the application:
accessKey - String
secretAccessKey - String
For more information about access key and secret access key, Please refer to IAM
bucketName - String
outputDirectoryPath - String
Suppose, app.hdfs2s3 is the name of the bucket and you want to copy the files to S3 location (app.hdfs2s3/apex/s3output) then configure the properties as below:
<property> <name>dt.operator.S3OutputModule.prop.bucketName</name> <value>app.hdfs2s3</value> </property> <property> <name>dt.operator.S3OutputModule.prop.outputDirectoryPath</name> <value>apex/s3output</value> </property>