气流:如何设置日志目录? [英] Airflow: How to setup log directory?
本文介绍了气流:如何设置日志目录?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我将 dag 文件上传到网页,当我单击 'Graph View'
-> ${my_dag}
-> 'View Log'
,它显示:
I upload a dag file to the web page and when I click 'Graph View'
-> ${my_dag}
-> 'View Log'
, it shows:
*** Log file isn't local.
*** Fetching here: http://:8793/log/demo_dag/hello_task/2018-11-14T15:06:00
*** Failed to fetch log file from worker.
*** Reading remote logs...
*** Unsupported remote log location.
我检查了 airflow.cfg
并找到了这些配置信息:
I have checked the airflow.cfg
and find these config info:
worker_log_server_port = 8793
base_log_folder = /root/airflow/logs
我的问题是:
- 如何设置日志服务的IP地址(只设置端口)?
- 我有日志服务的设置目录,为什么它仍然到
/log/..
?
感谢任何帮助.
推荐答案
我一直收到这个错误,通过更正套接字卷路径来修复它:
I've been getting this error, fix it by correcting the socket volume path:
WARNING - OSError while attempting to symlink the latest log directory
在 Windows 中,音量将带有双条,如下所示:
In windows the volume will go with a double bar like this:
volumes:
- //var/run/docker.sock:/var/run/docker.sock
这篇关于气流:如何设置日志目录?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文