All work Retail · Cloud migration

Moving more than 300 TB from Teradata to Google Cloud, table by table, over two years

A long-running migration that brought Teradata data, plus data from AWS, Hadoop and mainframe sources, onto Google Cloud Storage and BigQuery, while making BigQuery the home for everything new.

Our role
Migration pipeline engineering, automation and platform maintenance
Technology
BigQueryCloud StorageDataprocPySparkHiveTeradata BTEQPythonBash

The challenge

A large organization was moving off Teradata, but not in one step. Its enterprise data warehouse team owned the eventual full move, and in the meantime analytics teams kept running reports against Teradata. The job was to reduce dependence on it steadily: bring existing tables into a Google Cloud repository, and make sure nothing new was built on the old platform.

The data to move was not in one place. It sat in Teradata tables, in AWS S3, in flat files from mainframe systems and on Hadoop servers, in volumes from many small tables to a handful larger than 10 TB, and the migration had to land all of it in a form that analytics teams could use.

How it works

Four source systems, one destination
Teradata to BigQuery migration flowData from Teradata, AWS S3, mainframe flat files and Hadoop is landed in Cloud Storage, transformed with PySpark and Hive on Dataproc, and loaded into BigQuery, more than 300 terabytes in total. Validation reports compare row counts and aggregates such as sales with Teradata and raise alerts. All new reports and development go straight to BigQuery.SourcesLandTransformServeTeradata100+ tablesAWS S3bucketsMainframeflat filesHadoopserversCloud Storagelanding zone forevery sourceDataprocPySpark and Hiveapply the ETL logicto files in parallelBigQuery300+ TBmigratedAnalyticsreports andteamsNew reports and developmentgo straight to BigQueryValidation and alertsrow counts and key aggregates such as sales compared with Teradata,alerts on differences or failures (bash, Python, BTEQ)

Data lands in Cloud Storage, is transformed on Dataproc, loaded into BigQuery and validated.

What we built

Teradata tables to Cloud Storage and BigQuery

Over more than two years we migrated well over 100 Teradata tables to Google Cloud Storage and BigQuery, including several larger than 10 TB, and developed and maintained the migration process for more than 300 TB of data in total.

Many sources, one destination

Data was sourced from several systems and brought into BigQuery:

  • AWS S3 buckets.
  • Flat files from mainframe systems.
  • Hadoop servers.

Transforming files at scale

ETL logic was applied to the files in Cloud Storage using PySpark and Hive on Google Dataproc clusters, so large volumes were processed in parallel before loading into BigQuery.

Automation, alerts and validation

Manual tasks were automated, and alerts and validation reports were generated to project requirements, using bash, Python and BTEQ scripts. Validation reports compared row counts and aggregates for key business metrics such as sales between Teradata and BigQuery, so a migrated table was checked against the number the business already trusted.

BigQuery first for everything new

Alongside moving existing tables, we made sure every new report and new development went to BigQuery rather than Teradata. That stopped the old platform from growing while the enterprise data warehouse team worked towards moving Teradata completely.

Off the on-premise server

The migration application itself was moved from an on-premise server to a Compute Engine VM instance, so the tooling no longer depended on on-premise hardware either.

How it flows

  1. ExtractExport from Teradata, AWS S3, mainframe flat files and Hadoop.
  2. LandStage the data in Google Cloud Storage.
  3. TransformApply ETL logic with PySpark and Hive on Dataproc.
  4. LoadLoad the results into BigQuery.
  5. Validate and alertCompare counts and key aggregates such as sales, and alert on differences or failures.

What changed

  • More than 300 TB of data migrated, across 100+ tables including several above 10 TB, over a program of more than two years.
  • New reports and development directed to BigQuery, so reliance on Teradata stopped growing.
  • Data from AWS S3, mainframe flat files and Hadoop consolidated in BigQuery.
  • Validation reports on counts and business aggregates, with alerts, built into the process.
  • The migration application moved from an on-premise server to a cloud VM.

Facing something similar?

Tell us what you are building and we will say plainly whether and how we can help.

Start a conversation