我想用Airflow做一些东西。我用pip(后者是虚拟的)安装了它,但问题是当我想启动web服务器。
airflow webserver -p 8080 [2017-07-29 12:20:45,913] [4585] {models.py:167} INFO - Filling up the DagBag from /home/milenko/airflow/dags Running the Gunicorn Server with: Workers: 4 sync Host: 0.0.0.0:8080 Timeout: 120 Logfiles: - - ================================================================= [2017-07-29 12:20:46,950] {__init__.py:57} INFO - Using executor SequentialExecutor [2017-07-29 12:20:47 +0200] [4590] [INFO] Starting gunicorn 19.3.0 [2017-07-29 12:20:47 +0200] [4590] [ERROR] Connection in use: ('0.0.0.0', 8080) [2017-07-29 12:20:47 +0200] [4590] [ERROR] Retrying in 1 second. [2017-07-29 12:20:48 +0200] [4590] [ERROR] Connection in use: ('0.0.0.0', 8080) [2017-07-29 12:20:48 +0200] [4590] [ERROR] Retrying in 1 second. [2017-07-29 12:20:49 +0200] [4590] [ERROR] Connection in use: ('0.0.0.0', 8080) [2017-07-29 12:20:49 +0200] [4590] [ERROR] Retrying in 1 second. [2017-07-29 12:20:50 +0200] [4590] [ERROR] Connection in use: ('0.0.0.0', 8080) [2017-07-29 12:20:50 +0200] [4590] [ERROR] Retrying in 1 second. [2017-07-29 12:20:51 +0200] [4590] [ERROR] Connection in use: ('0.0.0.0', 8080) [2017-07-29 12:20:51 +0200] [4590] [ERROR] Retrying in 1 second. [2017-07-29 12:20:52 +0200] [4590] [ERROR] Can't connect to ('0.0.0.0', 8080)
用netstat我得到了这个输出
tcp6 0 0 :::8080 :::* LISTEN 1637/java
如何解决这个问题?我读过Gunicorn Server不适合8080端口的地方,但所有的Airflow教程都是这样指出的。
要么停止已经使用端口8080的Java应用程序,要么更改Airflow的端口。
不适合8080端口是非常模糊的,它应该没有关系,但你可能不得不改变客户端的连接设置。