气流:日志文件不在本地,远程日志位置不受支持 [英] Airflow: Log file isn't local, Unsupported remote log location
问题描述
我无法从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 http://: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:
推荐答案
我也面临相同的问题。
在<$ c中设置以下变量$ c> 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 = http://{hostname}:8080
base_url = http://{hostname}:8080
祝你好运!
这篇关于气流:日志文件不在本地,远程日志位置不受支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!