1)获取
wget https://github.com/teamclairvoyant/airflow-rest-api-plugin/archive/master.zip
2)将plugin文件夹下的内容放入airflow/plugin/下,若不存在则新建
3)重启airflowgit
当重启事后,发现airflow webserver不能启动了,报这样的错误github
从错误咱们能够看出来,系统缺乏flask_jwt_extended模块,换句话讲就是缺乏依赖包web
咱们经过命令进行安装flask
pip install flask_jwt_extended
重启airflow webserver服务,发现卡住不动了api
分析缘由:spa
airflow的版本是1.10.2插件
查看网址:https://github.com/teamclairvoyant/airflow-rest-api-pluginrest
这里提到了,我这个版本的airflow须要安装flask_jwt_extended模块code
咱们明明安装了这个依赖了,结果仍是不行server
是由于airflow版本低,安装flask_jwt_extended模块也要低版本
pip uninstall flask_jwt_extended //把原来模块卸载 pip install flask_jwt_extended==1.5.0
这个时候要同时把rest api的版本也下降,我直接下降到 v1.0.0去
再重复安装一次rest api插件就成功了,重启服务