如何在Google Composer上重新启动气流服务器? [英] How can I restart the airflow server on Google Composer?

查看:102
本文介绍了如何在Google Composer上重新启动气流服务器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我需要在本地重新启动Web服务器时,我会这样做:

When I need to restart the webserver locally I do:

ps -ef | grep airflow | awk '{print $2}' | xargs kill -9
airflow webserver -p 8080 -D

如何在Google Composer?我看不到在控制台中重新启动服务器的选项。

How can I do this on Google Composer? I don't see an option to restart the server in the console.

推荐答案

由于Cloud Composer是Apache Airflow 托管服务,因此无法重新启动整个服务。您可以通过服务的单个实例重新启动,如此处,但这无助于将其应用于插件更改。

Since Cloud Composer is an Apache Airflow managed service, it is not possible to restart the whole service. You can restart though the single instances of the service, as described here, but this will not help to apply to the plugin changes.

要应用插件更改,您应该将插件加载到 plugin 文件夹中后安装,该文件夹是在创建环境时自动创建的:

To apply the plugin changes, you should install the plugin after loading it into the plugin folder, automatically created when you created the environment:

gcloud composer environments storage plugins import --environment ENVIRONMENT_NAME \
    --location LOCATION \
    --source PATH_TO_LOCAL_FILE \
    --destination PATH_IN_SUBFOLDER

DAG更新会自动执行,而其他一些更新必须使用

DAG updates are performed automatically and some other must be applied using

gcloud编写器环境更新

命令

这篇关于如何在Google Composer上重新启动气流服务器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆