简体   繁体   中英

How can I create external data source in BigQuery and connect to composer cloud sql?

We have a composer environment in GCP and we want to export the airflow database in the tenant project to BigQuery. Is there a way to do so? Composer

I searched in all the location of Composer (on GKE with the secret and the cloud SQL proxy), in the Airflow db connexion, I got all the required element to connect my external source to BigQuery and I got this error:

在此处输入图像描述

So, you can't.....


EDIT 1:

Firstly, you can use the automatically configured connexion

Then, use the MySqlOperator to request the database and do what you want. Sometime it's easier to use the MySqlHook.

在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM