+ All Categories
Home > Technology > Treasure Data From MySQL to Redshift

Treasure Data From MySQL to Redshift

Date post: 09-Jan-2017
Category:
Upload: treasure-data-inc
View: 391 times
Download: 0 times
Share this document with a friend
17
Transcript
Page 1: Treasure Data  From MySQL to Redshift
Page 2: Treasure Data  From MySQL to Redshift

John Hammink Evangelist

Move data from MySQL to Redshift with (not much more than) a single clickDecember, 2015

Page 3: Treasure Data  From MySQL to Redshift

@treasuredata

Page 4: Treasure Data  From MySQL to Redshift

• Opensource relational database system

• World’s third most widely used RDBMS

• >100 million installations.

• Part of LAMP stack

What’s MySQL?

Page 5: Treasure Data  From MySQL to Redshift

What’s Redshift?

• Massively Parallel Processing (MPP) database

• Cloud-based, pay as you go

• Migrate to Redshift from: -On-Premises data warehouses -Sharded MySQL/PostgreSQL

Page 6: Treasure Data  From MySQL to Redshift

Why would you migrate

Page 7: Treasure Data  From MySQL to Redshift

What are the problems?

user_id sign_up_date action

123 “2015-09-01” “view”

………

campaign

“Twitter”

{“user_id”: 123, “sign_up_date”: “2015-09-01”, “action”: “view”, “campaign”: “Twitter”}

www

>.jar

>.rb

>.pyMulti-SourceEvent Data

Generic RelationalDatabase

Generic RelationalDatabase

In-DepthAdvancedAnalytic

Page 8: Treasure Data  From MySQL to Redshift

www

>.jar

>.rb

>.pyMulti-SourceEvent Data

Generic RelationalDatabase

Generic RelationalDatabase

In-DepthAdvancedAnalytic

user_id sign_up_date action

123 “2015-09-01” “view”

………

campaign

“Twitter”

{“user_id”: 123, “sign_up_date”: “2015-09-01”, “action”: “view”, “campaign”: “Twitter”}

Event Data: Missing Field

Page 9: Treasure Data  From MySQL to Redshift

Evolving Schema

user_id sign_up_date action

123 “2015-09-01” “view”

………

{“user_id”: 123, “sign_up_date”: “2015-09-01”, “action”: “view”}

www

>.jar

>.rb

>.pyMulti-SourceEvent Data

Generic RelationalDatabase

In-DepthAdvancedAnalytic

Page 10: Treasure Data  From MySQL to Redshift

What are a few migration challenges

?REDSHIFT

1. STORAGE?2. SCHEMA COMPATIBILITY?3. AUTOMATION?

Page 11: Treasure Data  From MySQL to Redshift

Manually exporting my sql to redshift

Create a Redshift cluster

Export MySQL data and split them into multiple files

Upload the load files to Amazon S3

Run a create table command

Run a COPY command to load the table

Verify that the data was loaded correctly

1

2

3

4

5

6

Page 12: Treasure Data  From MySQL to Redshift

What are the solutions?

Scheduling

8

Cloud storage Schema on read

Page 13: Treasure Data  From MySQL to Redshift

Solution: Cloud Data Lake + Redshift

JSON Event Data Cloud Data Lake (schema-on-read)

Cloud Data Warehouse (schema-on-write)

Page 14: Treasure Data  From MySQL to Redshift

14

DEMO

Page 15: Treasure Data  From MySQL to Redshift
Page 16: Treasure Data  From MySQL to Redshift

Tweet after me! “At @sumologic with @treasuredata learning how to migrate easily from #MySQL to #Redshift”

Page 17: Treasure Data  From MySQL to Redshift

Thank You!

www.treasuredata.com/request_demo [email protected]

1.866.899.5386


Recommended