Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.
/ mariadb-to-bigquery Public archive

Docker container with Node.js app to incrementally stream MariaDB tables and content to BigQuery

Notifications You must be signed in to change notification settings

gynzy/mariadb-to-bigquery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mariadb-to-mysql

Data Transfer from MariaDB to BigQuery

Install

$ cd app && npm i

Usage on localhost

Copy the .env.example to .env and fill in the desired configuration.

OR set following values instead.

export QUERY_LIMIT=100000
export RDS_HOST=xxxxxxxx
export RDS_USER=xxxxxxxx
export RDS_PASSWORD=xxxxxxxx
export RDS_DATABASE=xxxxxxxx
export BQ_PROJECT_ID=xxxxxxxx
export BQ_DATASET=xxxxxxxx
export TABLES=Comma,Separated,List,Of,Tables,To,Copy

Then put a Google service account json file in /app/google-keyfile.json.

From the /app folder start the ETL.

$ npm start

Usage with docker

  • docker pull quay.io/gynzy/mariadb-to-bigquery:latest Docker Repository on Quay
  • pass the environment variables in .env to the container
  • and as an extra, pass GCE_JSON environment variable which should contain a base64 encoded service account (json)

Usage with Kubernetes

License

MIT

About

Docker container with Node.js app to incrementally stream MariaDB tables and content to BigQuery

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published