以气流用户身份运行气流过程和气流Web服务器 [英] Run airflow process and airflow webserver as airflow user

查看:73
本文介绍了以气流用户身份运行气流过程和气流Web服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问题:我正在GCP上安装Google Compute Engine VM,并安装了 airflow 。现在,我要按照 airflow 与 systemd 集成在一起。 readthedocs.io/en/latest/configuration.html#integration-with-systemd rel = nofollow noreferrer> http://airflow.readthedocs.io/en/latest/configuration.html#integration-with-systemd ,但是它假设气流将在 airflow:airflow 下运行。

Problem: I am setting up a Google Compute Engine VM on GCP with airflow installed on it. I am now trying to integrate airflow with systemd by following instructions on http://airflow.readthedocs.io/en/latest/configuration.html#integration-with-systemd, however it states an assumption that Airflow will run under airflow:airflow.

如何设置气流安装,以便该VM上的任何用户从外壳运行气流时,后端以 airflow 用户身份运行。

How can I set the airflow installation so that whenever any user on that VM runs airflow from the shell, on backend it runs as airflow user. It is similar to hive process running under hive user.

虚拟机上的操作系统:CentOS 7

OS on VM: CentOS 7

推荐答案

您是否尝试过按照链接的官方文档中列出的说明进行操作?我相信,只要您使用 Airflow提供的SystemD配置所有进程都应开始使用 airflow:airflow

Have you tried actually following the directions as listed in the linked offical docs? I believe that as long as you use Airflow supplied SystemD configs all processes should start using airflow:airflow.

这种情况发生在这两行

当然,这是假设您仅使用systemd启动服务。如果您尝试手动运行 airflow网络服务器,它将以您的当前用户身份启动。

Of course this is assuming you are exclusively using systemd to start the services up. If you try manually running airflow webserver it will start as your current user.

这篇关于以气流用户身份运行气流过程和气流Web服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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