Documentation - Working With RDS
Documentation - Working With RDS
This document assumes that you’ve already created an RDS instance on AWS. All the
commands in this documentation have been executed using the following RDS specifications:
Database Name: demoDB
User: admin
Password: user123
show tables;
Depending on the data source, you can also use the following methods to download the data to
your instance
Mac/Linux scp -i C:\User\Downloads\XXXXX.pem ~/Downloads/crm1.csv
[email protected]:/home/hadoop
b. Loading this data onto the tables SQL tables using our EMR instance
Connect to your RDS instance
Go to your database and load the tables that you have created
It’s always good to try a few commands to make sure that your tables have indeed been loaded
select * from users limit 5;
Validate this count with the original u.users file in your instance.
wc device1.csv
With the RDS now loaded with the data, you can now use Sqoop commands to ingest the data
from RDS.
Steps to set up a connection between RDS instance and EC2
Go to your RDS instance and click on Actions and “Set up EC2 connection’
Click on ‘Confirm and set up’ button after reviewing the parameters