气流:无法访问AWS供应商 [英] Airflow: Unable to access the AWS providers

查看:75
本文介绍了气流:无法访问AWS供应商的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试访问我正在构建docker映像并使用PIP安装Airflow,并将AWS子软件包包含在install命令中.

I'm building a docker image and installing Airflow using PIP and including the AWS subpackage in the install command.

pip install'apache-airflow [crypto,aws,celery,postgres,hive,jdbc,mysql,ssh] == 1.10.9'\

但是,我无法从Python访问提供程序.

However, i'm unable to access the Provider from Python.

from airflow.providers.amazon.aws.hooks.glue import AwsGlueJobHook

>>> from airflow.providers.amazon.aws.hooks.glue import *
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'airflow.providers'

Providers文件夹尚未安装.

Providers folder has not been installed.

total 184
-rw-r--r--  1 root root   833 Apr 17 15:25 version.py
-rw-r--r--  1 root root 13682 Apr 17 15:25 settings.py
-rw-r--r--  1 root root  5281 Apr 17 15:25 sentry.py
-rw-r--r--  1 root root  8942 Apr 17 15:25 plugins_manager.py
-rw-r--r--  1 root root  3833 Apr 17 15:25 logging_config.py
-rw-r--r--  1 root root  3232 Apr 17 15:25 __init__.py
-rw-r--r--  1 root root  3503 Apr 17 15:25 exceptions.py
-rw-r--r--  1 root root  2646 Apr 17 15:25 default_login.py
-rw-r--r--  1 root root 26086 Apr 17 15:25 configuration.py
-rw-r--r--  1 root root  2237 Apr 17 15:25 alembic.ini
drwxr-xr-x  6 root root  4096 Apr 17 15:25 www_rbac
drwxr-xr-x  6 root root  4096 Apr 17 15:25 www
drwxr-xr-x  5 root root  4096 Apr 17 15:25 _vendor
drwxr-xr-x  4 root root  4096 Apr 17 15:25 utils
drwxr-xr-x  4 root root  4096 Apr 17 15:25 ti_deps
drwxr-xr-x  4 root root  4096 Apr 17 15:25 task
drwxr-xr-x  3 root root  4096 Apr 17 15:25 serialization
drwxr-xr-x  3 root root  4096 Apr 17 15:25 sensors
drwxr-xr-x  3 root root  4096 Apr 17 15:25 security
drwxr-xr-x  2 root root  4096 Apr 17 15:25 __pycache__
drwxr-xr-x  3 root root  4096 Apr 17 15:25 operators
drwxr-xr-x  3 root root  4096 Apr 17 15:25 models
drwxr-xr-x  4 root root  4096 Apr 17 15:25 migrations
drwxr-xr-x  3 root root  4096 Apr 17 15:25 macros
drwxr-xr-x  4 root root  4096 Apr 17 15:25 lineage
drwxr-xr-x  3 root root  4096 Apr 17 15:25 jobs
drwxr-xr-x  3 root root  4096 Apr 17 15:25 hooks
drwxr-xr-x  3 root root  4096 Apr 17 15:25 executors
drwxr-xr-x  4 root root  4096 Apr 17 15:25 example_dags
drwxr-xr-x  3 root root  4096 Apr 17 15:25 dag
drwxr-xr-x 12 root root  4096 Apr 17 15:25 contrib
drwxr-xr-x  3 root root  4096 Apr 17 15:25 config_templates
drwxr-xr-x  3 root root  4096 Apr 17 15:25 bin
drwxr-xr-x  6 root root  4096 Apr 17 15:25 api
airflow@eaf772874a0b:/usr/local/lib/python3.7/site-packages/airflow$

非常感谢您的帮助.

推荐答案

Airflow不再包含提供程序包,但是您可以使用特定的backport包通过pip单独安装它们,对于aws您可以使用:

Providers package is no longer included with Airflow, but you can separately install them with pip using the specific backport package, for aws you can use:

pip install apache-airflow-backport-providers-amazon

更多信息可以在这里找到: Airflow亚马逊提供商

More info can be found here: Airflow Amazon Provider

这篇关于气流:无法访问AWS供应商的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆