Apache气流:在同一本地机器中安装两个实例

发布于 2025-02-01 13:06:27 字数 184 浏览 4 评论 0原文

我在本地的Ubuntu机器中有一个气流实例。此实例工作不太好,因此我想再次安装它。问题是我无法删除当前实例,因为它是其他人使用的,因此我想在同一台计算机上创建一个新的气流实例,以将各种DAG放在那里。

我该怎么办?我创建了一个不同的虚拟环境,但是我不知道如何在该环境中安装第二个气流服务器,该环境与当前气流并行工作。

谢谢你!

I have an Airflow instance in a local Ubuntu machine. This instance doesn't work very well, so I would like to install it again. The problem is that I can't delete the current instance, because it is used by other people, so I would like to create a new Airflow instance in the same machine to put various dags there.

How could I do it? I created a different virtual environment, but I don't know how to install a second airflow server in that environment, which works in parallel with the current airflow.

Thank you!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

以为你会在 2025-02-08 13:06:27
  1. 使用不同的端口进行Web服务器
  2. 使用不同的AirFlow_Home变量
  3. 使用不同的SQL_ALCHEMY_CONN(指向其他数据库)
  4. 复制您必须启动/停止气流组件的部署。

根据您的部署,您可能会在运行气流(所谓的PID-Files)中某种程度上记录过程ID,或者还有其他方法来确定正在运行哪些过程。但这不是特定于气流的,这是您部署的特定的。

  1. use different port for webserver
  2. use different AIRFLOW_HOME variable
  3. use different sql_alchemy_conn (to point to a different database)
  4. copy the deployment you have to start/stop your airflow components.

Depending on your deployment you might somehew record process id of your running airflow (so called pid-files) or have some other way to determine which processes are running. But that is nothing airflow-specific, this is something that is specific for your deployment.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文