气流:日志文件不在本地,远程日志位置不受支持

编程入门 行业动态 更新时间:2024-10-08 01:20:31
本文介绍了气流:日志文件不在本地,远程日志位置不受支持的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我无法从Airflow UI中看到附加到任务的日志:

I am not able see the logs attached to the tasks from the Airflow UI:

日志airflow.cfg文件中的相关设置为:

Log related settings in airflow.cfg file are:

  • remote_base_log_folder =
  • base_log_folder = / home / my_projects / ksaprice_project / airflow / logs
  • worker_log_server_port = 8793
  • child_process_log_directory = / home / my_projects / ksaprice_project / airflow / logs / scheduler
  • remote_base_log_folder =
  • base_log_folder = /home/my_projects/ksaprice_project/airflow/logs
  • worker_log_server_port = 8793
  • child_process_log_directory = /home/my_projects/ksaprice_project/airflow/logs/scheduler

尽管我设置了remote_base_log_folter,但它仍试图从 http://:8793 /获取日志日志/教程/ print_date / 2017-08-02T00:00:00 -我不了解这种行为。根据设置,工作人员应将日志存储在 / home / my_projects / ksaprice_project / airflow / logs 中,并且应从相同位置而非远程获取它们。

Although I am setting remote_base_log_folter it is trying to fetch the log from :8793/log/tutorial/print_date/2017-08-02T00:00:00 - I don't understand this behavior. According to the settings the workers should store the logs at /home/my_projects/ksaprice_project/airflow/logs and they should be fetched from the same location instead of remote.

更新 task_instance表内容:

Update task_instance table content:

推荐答案

我也面临相同的问题。

在 airflow.cfg 为我工作。将 {hostname} 用作计算机的 FQDN {hostname} 而不是本地主机。

Setting below variables in airflow.cfg worked for me. Use {hostname} as machine's FQDN {hostname} instead of localhost.

endpoint_url = {hostname}:8080 base_url = {hostname}:8080

祝你好运!

更多推荐

气流:日志文件不在本地,远程日志位置不受支持

本文发布于:2023-11-23 21:42:08,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1622931.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:日志   不受   气流   位置   文件

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!