[英]Polybase: Can't connect to Azure Blob from SQL Server
I am trying out the new Polybase-Feature in SQL-Server by connecting to a CSV .我正在通过连接到 CSV 来尝试SQL-Server 中的新Polybase-Feature 。 However I do not manage to connect to the Azure Blob Storage:但是我无法连接到 Azure Blob 存储:
CREATE EXTERNAL DATA SOURCE AzureBlob WITH (
TYPE = HADOOP,
LOCATION = 'wasbs://myfolder@myblob.blob.core.windows.net',
CREDENTIAL = mycredential
);
GO
I always get an error saying:我总是收到一条错误消息:
Incorrect syntax near 'HADOOP' 'HADOOP' 附近的语法不正确
My SQL Server runs on an Azure VM, however I am not sure which services are supposed to be running:我的 SQL Server 在 Azure VM 上运行,但是我不确定应该运行哪些服务:
I also checked TCP/IP is enabled.我还检查了 TCP/IP 是否已启用。
I also tried using SSDT and dsql-files as suggested in this post - but the error doesn't go away.我还尝试按照这篇文章中的建议使用 SSDT 和 dsql 文件 - 但错误并没有消失。
However I do not manage to connect to the Azure Blob Storage但是我无法连接到 Azure Blob 存储
Should it not be a Type=BLOB_STORAGE
?它不应该是Type=BLOB_STORAGE
吗?
CREATE EXTERNAL DATA SOURCE AzureBlob WITH (
TYPE = BLOB_STORAGE,
LOCATION = 'wasbs://myfolder@myblob.blob.core.windows.net',
CREDENTIAL = mycredential
);
Update 2020-02-18: 2020-02-18 更新:
I encounter the same famous message recently:我最近遇到了同样的著名信息:
Incorrect syntax near 'HADOOP' 'HADOOP' 附近的语法不正确
It can be fixed running:它可以固定运行:
exec sp_configure 'polybase enabled', 1;
GO
RECONFIGURE
Microsoft built a nice page: Configure PolyBase to access external data in Azure Blob Storage . Microsoft 构建了一个不错的页面: 配置 PolyBase 以访问 Azure Blob 存储中的外部数据。 However, they didn't include that important command.但是,它们并没有包含那个重要的命令。
I think it could also be a reason of the initial issue of 5th我认为这也可能是第 5 期最初发行的原因
While I accepted Alexander's answer, it turns out that the option BLOB_STORAGE
doesn't allow to create external tables.虽然我接受了亚历山大的回答,但事实证明选项BLOB_STORAGE
不允许创建外部表。 The option HADOOP
was the correct one for me.选项HADOOP
对我来说是正确的。 There were three steps I needed to do to make the HADOOP
option work:为了使HADOOP
选项起作用,我需要执行三个步骤:
Then the SQL
-Statement from my question worked.然后我问题中的SQL
-Statement 起作用了。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.