简体   繁体   English

将数据从数据库移动到 Azure blob 存储

[英]Moving data from a database to Azure blob storage

I'm able to use dask.dataframe.read_sql_table to read the data eg df = dd.read_sql_table(table='TABLE', uri=uri, index_col='field', npartitions=N)我可以使用dask.dataframe.read_sql_table读取数据,例如df = dd.read_sql_table(table='TABLE', uri=uri, index_col='field', npartitions=N)

What would be the next (best) steps to saving it as a parquet file in Azure blob storage?将其保存为 Azure blob 存储中的镶木地板文件的下一个(最佳)步骤是什么?

From my small research there are a couple of options:根据我的小型研究,有几个选择:

$ pip install adlfs

dd.to_parquet(
    df=df, 
    path='absf://{BLOB}/{FILE_NAME}.parquet', 
    storage_options={'account_name': 'ACCOUNT_NAME',
                     'account_key': 'ACCOUNT_KEY'},
    )

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 将文件从Azure Blob /文件存储移动到Azure FTP空间 - Moving files from Azure Blob / Files storage to Azure FTP space 如何使用数据工厂将数据从 Azure Blob 存储增量加载到 Azure SQL 数据库? - How to incrementally load data from Azure Blob storage to Azure SQL Database using Data Factory? 从URL提取TIF并将其移到C#中的Azure Blob存储中 - Taking a TIF from a URL and moving it into Azure blob storage in C# 将集合中的所有文档从mongo移到Azure Blob存储 - Moving all documents in a collection from mongo to azure blob storage 将天蓝色安装的VHD Blob从一个存储帐户移动到另一个 - Moving an azure mounted vhd blob from one storage account to another 按需在Azure Blob存储库和Azure数据库之间移动数据 - Moving data between Azure Blob storeage and Azure database on demand 无法创建从 Azure Blob 存储容器到 Azure Sql 数据库超大规模的外部数据源 - Can't create an external data source from Azure Blob Storage Container to Azure Sql Database Hyperscale 如何在没有 Azure 数据工厂的情况下将 csv 文件从 blob 存储加载到 azure sql 数据库 - How to load csv file from blob storage to azure sql database without Azure Data Factory 尝试将数据从 Azure SQL 数据库复制到 Azure Blob 存储时出错 - Error trying to copy data from Azure SQL database to Azure Blob Storage 从Azure数据工厂访问Azure Blob存储帐户 - Access Azure Blob storage account from azure data factory
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM