Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

This document provides instructions for configuring Wrangler and Pipelines in Cloud Data Fusion (CDF) to read from Amazon S3. Please ensure that you’ve met the prerequisites in order to follow the instructions presented in this document.

Prerequisites

There are a number of prerequisites that you need to ensure are in place before you can proceed with the configuration instructions. The following steps need to be performed on your Google Cloud Console.

  1. Create Data Fusion instance. Follow the instructions here and ensure that include the following roles in IAM for the service account:

    1. Cloud Data Fusion Admin

    2. Cloud Data Fusion API Service Agent

    3. Storage Object Viewer

  2. For your existing Amazon S3 bucket, make sure you know what region it is in.

  3. Determine whether that region accepts requests in both versions or only version 4of the Signature protocol. You can find this information on Amazon’s website at https://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region.

  4. If the region accepts version 4 only, note down one of the valid endpoint names.

Instructions

Configure Cloud Data Fusion

  1. In CDF, go to Wrangler

3. If this is the first time you are configuring S3 as a source, click on the Add Connection button from the Wrangler screen and choose S3

.

4. Enter the information for this connection. Note that the credentials in this screenshot are made up and will not work. You need to use your own AWS access key.

5. Click Test Connection to verify that the connection can successfully be established with the database.

6. Click Add Connection.

7. You will now see the connection in your left hand screen.

8. Pick a bucket and a file within that bucket to wrangle. Note that even though you specified a region when creating the connection, Amazon S3 will list buckets from all regions that you have access to. It is advisable to choose a bucket in the same region as the connection.

9. Once you are done wrangling, click Create a Pipeline and select Batch:

This creates a pipeline and takes you the Studio.

10. If the S3 bucket is in a region that accepts version 4 of the Signature protocol only, then:

a) Open the Properties of the created S3 source.

b) In the dialog window that pops up, change the schema of S3 Path to s3a:

c) Scroll down and add the following under File System Properties:

{ "fs.s3a.endpoint": "<valid endpoint for the region" }

For example:

d) Close the pop-up.

11. Finish, deploy and run your pipeline.

Note: Pipeline preview will not currently work with Amazon S3.

  • No labels