简体   繁体   English

将 airflow 连接到谷歌融合

[英]Connect airflow to google fusion

I'd like to write python script which manages my google data fusion pipelines and instances (creates new, deletes, starts, etc).我想编写 python 脚本来管理我的谷歌数据融合管道和实例(创建新的、删除的、启动的等)。 For that purpose I use airflow installed as library.为此,我使用安装为库的 airflow。 I've read some tutorials and documentations but I still can't make that script connect with data fusion instance.我已经阅读了一些教程和文档,但我仍然无法使该脚本与数据融合实例连接。 I've tried to use next string:我尝试使用下一个字符串:

export AIRFLOW_CONN_GOOGLE_CLOUD_DEFAULT='google-cloud-platform://?extra__google_cloud_platform__key_path=%2Fkeys%2Fkey.json&extra__google_cloud_platform__scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fcloud-platform&extra__google_cloud_platform__project=airflow&extra__google_cloud_platform__num_retries=5'

with my data json key file and Project id but it still doesn't work.使用我的数据 json 密钥文件和项目 ID,但它仍然无法正常工作。 Can you give me an example of creating that connection?你能给我一个创建这种连接的例子吗?

You can find an example python script here: https://airflow.readthedocs.io/en/latest/_modules/airflow/providers/google/cloud/example_dags/example_datafusion.html您可以在此处找到示例 python 脚本: https://airflow.readthedocs.io/en/latest/_modules/airflow/providers/google/cloud/example_dags/example_datafusion.ZFC35FDC70D5FC69D23EZ8A8228

This page provides a breakdown for each Data Fusion Operator if you would like to learn more about them: https://airflow.readthedocs.io/en/latest/howto/operator/gcp/datafusion.html如果您想了解有关每个数据融合运算符的详细信息,此页面提供了每个数据融合运算符的细分: https://airflow.readthedocs.io/en/latest/howto/operator/gcp/datafusion.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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