我正在尝试使用airflow.
我想对我写的 dag 进行本地测试。我在 Windows 上,所以我决定按照本教程https://coding-stream-of-tentionness.com/2018/11/06/apache-airflow-windows-10-install-ubuntu/安装 ubuntu WLS 。一切似乎都很好。
我用airflow initdb.
然后我跑airflow webserver -p 8080,它似乎在跑。当我访问http://0.0.0.0:8080/ 时,我看不到任何用户界面。如果我再次尝试运行,airflow webserver我得到了
Error: Already running on PID 6244 (or pid file '/home/marcofumagalli/airflow/airflow-webserver.pid' is stale)
所以我想网络服务器正在运行。
它与代理有关吗?
小智 11
Error: Already running on PID 6244 (or pid file '/home/marcofumagalli/airflow/airflow-webserver.pid' is stale)
这意味着端口 8080 很忙。
尝试运行以下命令:-
sudo lsof -i tcp:8080:- 将显示正在运行的进程COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
Python 945 amanraheja 6u IPv4 0xb7fcab59337d7455 0t0 TCP *:http-alt (LISTEN)
Python 1009 amanraheja 6u IPv4 0xb7fcab59337d7455 0t0 TCP *:http-alt (LISTEN)
Python 1052 amanraheja 6u IPv4 0xb7fcab59337d7455 0t0 TCP *:http-alt (LISTEN)
Python 1076 amanraheja 6u IPv4 0xb7fcab59337d7455 0t0 TCP *:http-alt (LISTEN)
Python 96034 amanraheja 6u IPv4 0xb7fcab59337d7455 0t0 TCP *:http-alt (LISTEN)
杀死PIDkill -9 945等等..
删除airflow-webserver.pid文件并再次启动服务器,您将看到它运行良好。
| 归档时间: |
|
| 查看次数: |
5500 次 |
| 最近记录: |