SQL 服务器 -- 创建外部文件格式以通过 Polybase 查询 Parquet 文件 -- 由于 TCP 错误而失败

SQL Server -- CREATE EXTERNAL FILE FORMAT to query Parquet files via Polybase -- failing due to TCP error

上下文: 我正在尝试使用 SQL 服务器的 Polybase 查询镶木地板文件中的数据。这样做所需的步骤之一是创建 maps to parquet 的外部文件格式。 MSDN 在下面提供了 SQL 示例。

CREATE EXTERNAL FILE FORMAT parquet_file_format
WITH (  
FORMAT_TYPE = PARQUET,  
--DATA_COMPRESSION = 'org.apache.hadoop.io.compress.SnappyCodec'
DATA_COMPRESSION = 'org.apache.hadoop.io.compress.GzipCodec'
);  

当我执行它时,出现以下错误。

OLE DB provider "MSOLEDBSQL" for linked server "(null)" returned message "Login timeout expired". OLE DB provider "MSOLEDBSQL" for linked server "(null)" returned message "A network-related or instance-specific error has occurred while establishing a connection to SQL Server. Server is not found or not accessible. Check if instance name is correct and if SQL Server is configured to allow remote connections. For more information see SQL Server Books Online.". Msg 10061, Level 16, State 1, Line 40 TCP Provider: No connection could be made because the target machine actively refused it.

我试过了enabling TCP network protocol

并尝试配置 remote access server configuration option 两者都无法解决错误。

EXEC sp_configure 'remote access', 0 ;  
GO  
RECONFIGURE ;  
GO

问题:有人可以指出我正确的方向,或者告诉我我做错了什么吗?

原来问题是 Polybase 服务没有 运行ning。我能够在 sql 服务器网络配置下的 sql 服务器配置管理器中 运行 它们。这很有帮助:https://www.sqlservercentral.com/forums/topic/polybase-syntax-error