Azure Blob Storage 到 Amazon S3 传输操作符¶
使用 AzureBlobStorageToS3Operator
传输操作符将数据从 Azure Blob Storage 复制到 Amazon Simple Storage Service (S3)。
前提任务¶
要使用这些操作符,您需要做一些准备工作
使用 AWS Console 或 AWS CLI 创建必要的资源。
通过 pip 安装 API 库。
pip install 'apache-airflow[amazon]'详细信息请参阅 Airflow® 安装
设置连接.
操作符¶
Azure Blob Storage 到 Amazon S3¶
要将数据从 Azure Blob Storage 容器复制到 Amazon S3 存储桶,您可以使用 AzureBlobStorageToS3Operator
示例用法
tests/system/amazon/aws/example_azure_blob_to_s3.py
azure_blob_to_s3 = AzureBlobStorageToS3Operator(
task_id="azure_blob_to_s3",
container_name=azure_container_name,
dest_s3_key=s3_key_url,
)