How to Sync Mysql into Bigquery in realtime?

不问归期 提交于 2020-01-10 04:24:05

问题


Currently I have some script which first deletes the table and upload the table from MySQL to Bigquery. And many time it had failed. Plus it run only once a day. I am looking for some scalable and realtime solution. Your Help will be much appreciated :)


回答1:


Read these series of posts from Wepay, where they detail how they sync their MySQL databases to BigQuery, using Airflow:

  • https://wecode.wepay.com/posts/wepays-data-warehouse-bigquery-airflow
  • https://wecode.wepay.com/posts/airflow-wepay
  • (3rd one is about BigQuery)

As a summary (quoting):

  • Setup authentication, connections, DAG.
  • Define which columns to pull from MySQL and load into BigQuery.
  • Choose how to load the data: incrementally, or fully.
  • De-duplicating.


来源:https://stackoverflow.com/questions/40629086/how-to-sync-mysql-into-bigquery-in-realtime

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!