简体   繁体   中英

Copy parquet file from Azure data lake storage account to Synapse data warehouse table failed

I used COPY INTO statement to copy csv file in ADLS Gen2 to Synapse table successfully with share access signature as credential. However, when I try to copy snappy.parquet file in the same storage account (different container) into a table in the same data warehouse, got error: "Error occurred while accessing HDFS: Java exception raised on call to HdfsBridge_Connect. Java exception message: Configuration property mystorage.dfs.core.windows.net not found.". my code is:

CREATE EXTERNAL FILE FORMAT pqt  
WITH (  
    FORMAT_TYPE = PARQUET  
    ,DATA_COMPRESSION = 'org.apache.hadoop.io.compress.SnappyCodec'               
    );  
COPY INTO [dbo].table
FROM 'https://mystorage.dfs.core.windows.net/../*.parquet'
WITH
(
  FILE_FORMAT =pqt
  ,CREDENTIAL=(IDENTITY= 'Shared Access Signature', SECRET='sas token') )

Do you know how to solve this issue?

Thanks

Can you please try using blob in URL of location instead of dfs as this seems working for me even though I am referring to ADLS Gen 2 when loading Parquet file as below.

在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM