0

尝试从 Azure 数据仓库连接到 Azure Blob 存储时出现错误

Msg 105019, Level 16, State 1, Line 100
EXTERNAL TABLE access failed due to internal error: 'Java exception raised on call to HdfsBridge_Connect. Java exception message:
Parameters provided to connect to the Azure storage account are not valid.: Error [Parameters provided to connect to the Azure storage account are not valid.] occurred while accessing external file.'

CREATE DATABASE SCOPED CREDENTIAL AzureStorageCredential  
    WITH IDENTITY = 'SHARED ACCESS SIGNATURE',
    SECRET = 'abcdeXXXXXXXXXXXXXXXXXXXXXXXXX';


CREATE EXTERNAL DATA SOURCE MyAzureStorage1 WITH (
        TYPE = HADOOP, 
        LOCATION = 'wasb://Container@mydwblob.blob.core.windows.net/',
        CREDENTIAL = AzureStorageCredential  
    );


CREATE EXTERNAL TABLE dbo.MyExternalTable(   
    VendorID varchar(50) NULL,  
)  
WITH (  
        LOCATION='/2016/', DATA_SOURCE = MyAzureStorage1, 
        FILE_FORMAT = myfileformat,REJECT_TYPE = VALUE,REJECT_VALUE = 1000
        myfileformat,REJECT_TYPE = VALUE,REJECT_VALUE = 1000
    ) ; 

有什么不对?

4

1 回答 1

0

PolyBase 不支持 SAS 令牌。您将需要使用存储帐户密钥。有关更多信息,请查看https://docs.microsoft.com/en-us/azure/sql-data-warehouse/sql-data-warehouse-overview-load

于 2017-11-02T18:05:35.250 回答