Prerequisites
Learn how to collect the information you need to deploy the Dropbox to S3 ReadyFlow, and meet other prerequisites.
For your data ingest source
- You have a Dropbox account.
- You have data stored in Dropbox that you want to move to S3.
- You have created a Dropbox App (https://www.dropbox.com/developers).
- You have generated the following Dropbox credentials: App Key, App Secret, Access Token, and
Refresh Token.
Generating App Key and App Secret
- Log in with your Dropbox account.
- If you already have an app, go to Dropbox Developers and click
App Console. Select your app. On the app's info page you can find the
App keyandApp secretcredentials. - If you do not have any apps, go to Dropbox Developers and click Create apps.
- On the next page select Scoped access and Full Dropbox as access type.
- Provide a name for your app.
- Accept the Dropbox API Terms and Conditions and click Create app.
Your app is created and you are taken to the app's info page. You can find the
App keyandApp secretcredentials on the Settings tab.Setting required permissions for your app
- Go to the Permissions tab of your app's info page.
- Set the required permission for your app by enabling
files.content.read.With this permission, your app will be able to read the files in Dropbox.
- Click Submit.
Generating Access Token and Refresh Token
- Go to the following web page: https://www.dropbox.com/oauth2/authorize?token_access_type=offline&response_type=code&client_id=your_app_key
- Click Next and then click Allow on the next
page.
An access code is generated for you, and it is displayed on the next page.
- Execute the following command from the terminal to fetch the access and refresh
tokens.
curl https://api.dropbox.com/oauth2/token -d code=your_generated_access_code -d grant_type=authorization_code -u your_app_key:your_app_secretThe curl command results in a JSON file that contains the
access_tokenandrefresh_token.For more information, see the Dropbox Getting Started.
- You have the Dropbox folder ID or path you want to read from.
For Cloudera Data Flow
-
You have a Cloudera Data Flow service deployed on Cloudera Anywhere Cloud.
For your data ingest target
- You have the destination S3 region, bucket, path, access key ID, and secret access key.
- You have access to the destination S3 bucket.
