0 背景
在当前部署好最新版本dolphinscheduler-3.1.3版本基础上,连接sqlserver发生报错。报错内容如下:
The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption. Error: “The server selected protocol version TLS10 is not accepted by client preferences [TLS13, TLS12]”. ClientConnectionId:08ee0b17-de28-44aa-9cdb-ebec41162b69
当前sqlserver版本:
Microsoft SQL Server 2014 - 12.0.2000.8 (X64)
Feb 20 2014 20:04:26
Copyright (c) Microsoft Corporation
Express Edition (64-bit) on Windows NT 6.3 <X64> (Build 9600: ) (Hypervisor)
1 解决办法
修改java安全认证配置文件
$JAVA_HOME\jre\lib\security\java.security
方式一:
把 jdk.tls.disabledAlgorithms 配置项中 TLSv1 删除,这样 TLS1.0 就可以使用了。
方式二:
把 jdk.tls.disabledAlgorithms 配置项注释掉或者删掉。
注释之后,重启dolphinscheduler,重启之后即可正常连接sqlserver