尝试连接到Google Big Query时,为什么Azure数据工厂集成运行时会返回ODBC / SSL TLS1.2错误?

问题描述

我正在尝试使用Azure VM上的Integration Runtime使用Azure Data Factory从Google BigQuery中提取数据(使用服务身份验证)。但是,当我测试链接服务ADF的连接时,将返回以下错误。我发现了一些可以解决此问题的方法包括更新我的ODBC驱动程序,更新.NET运行时以及进行注册表编辑以强制服务器使用TLS 1.2,但这些方法均无济于事,我为要使它正常工作的事情。

ADF错误

错误[HY000] [Microsoft] [DriverSupport](1160)无法启用SSL 连接到未启用SSL的服务器时的连接。 如果服务器已启用SSL,请检查它是否已配置 使用低于允许的SSL协议版本 连接。允许的最低SSL协议版本 连接是:TLS 1.2。

集成运行时位于Windows Server上,当我查看事件日志时,我发现此错误

调试:TraceComponentId:QueryTask TraceMessageId: QueryRuntimeTestConnectionV2Exception @logId:错误函数名称: TestConnection jobId:00000000-0000-0000-0000-000000000000 activityId: fa99d407-edaf-4ef7-8062-7d8e64859fe9 eventId: QueryRuntimeTestConnectionV2Exception消息:TestConnection失败, 错误信息: '类型= Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,消息=错误 [HY000] [Microsoft] [DriverSupport](1160)无法为SSL启用SSL 连接到未启用SSL的服务器时的连接。如果 服务器已启用SSL,请检查它是否已配置为 使用低于允许的SSL协议版本 连接。允许的最低SSL协议版本 连接是:TLS 1.2。错误[HY000] [Microsoft] [DriverSupport] (1160)连接到计算机时无法为连接启用SSL 未启用SSL的服务器。如果服务器启用了SSL,请 检查它是否已配置为使用以下SSL协议版本 低于连接允许的范围。最低SSL 允许连接的协议版本为:TLS 1.2。,Source = Microsoft.DataTransfer.Runtime.GenericOdbcConnectors,StackTrace = 在 Microsoft.DataTransfer.Runtime.GenericOdbc.GenericOdbcConnection.Open() 在 Microsoft.DataTransfer.Runtime.GenericOdbc.GenericOdbcConnection.TestConnection() 在 Microsoft.DataTransfer.TransferTask.InteractiveTaskFactoryV2.ConnectorTestConnection(ConnectionSetting connectionSetting,TestConnectionV2Response响应)位于 Microsoft.DataTransfer.TransferTask.InteractiveTaskFactoryV2.TestConnection(TestConnectionV2Request 请求,TestConnectionV2Response响应) Microsoft.DataTransfer.TransferTask.InteractiveTask 2.Execute(),''Type=System.Data.Odbc.OdbcException,Message=ERROR [HY000] [Microsoft][DriverSupport] (1160) Cannot enable SSL for the connection when connecting to a server that has not enabled SSL. If the server has SSL enabled,please check if it has been configured to use a SSL protocol version that is lower than what is allowed for the connection. The minimum SSL protocol version allowed for the connection is: TLS 1.2. ERROR [HY000] [Microsoft][DriverSupport] (1160) Cannot enable SSL for the connection when connecting to a server that has not enabled SSL. If the server has SSL enabled,please check if it has been configured to use a SSL protocol version that is lower than what is allowed for the connection. The minimum SSL protocol version allowed for the connection is: TLS 1.2.,Source=,StackTrace= at System.Data.Odbc.OdbcConnection.HandleError(OdbcHandle hrHandle,RetCode retcode) at System.Data.Odbc.OdbcConnectionopen..ctor(OdbcConnection outerConnection,OdbcConnectionString connectionoptions) at System.Data.Odbc.OdbcConnectionFactory.CreateConnection(DbConnectionoptions options,DbConnectionPoolKey poolKey,Object poolGroupProviderInfo,DbConnectionPool pool,DbConnection owningObject) at System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection owningConnection,DbConnectionPoolGroup poolGroup,DbConnectionoptions userOptions) at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection,taskcompletionsource 1重试,DbConnectionoptions userOptions,DbConnectionInternal oldConnection,DbConnectionInternal& 连接) System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection externalConnection,DbConnectionFactory connectionFactory, taskcompletionsource 1 retry,DbConnectionoptions userOptions) at System.Data.ProviderBase.DbConnectionInternal.OpenConnection(DbConnection outerConnection,DbConnectionFactory connectionFactory) at System.Data.Odbc.OdbcConnection.open() at Microsoft.DataTransfer.Common.Shared.HelperMethod.ExecuteWithTimeout(Action action,TimeSpan timeout,HybridDeliveryExceptionCode exceptionCode,String errormessageformat) at Microsoft.DataTransfer.Common.RetryPolicies.RetryExtension.<>c__displayClass0_0.<ExecuteAction>b__0() at Microsoft.DataTransfer.Common.RetryPolicies.RetryExtension.ExecuteAction[TResult](IRetry retry,Func 1函数)位于 Microsoft.DataTransfer.Runtime.GenericOdbc.GenericOdbcConnection.Open(),'。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)