页面树结构
转至元数据结尾
转至元数据起始

(本文档仅供参考)

问题

使用presto或者跨库联合数据源(跨库联合数据源是基于Presto数据库去实现的)时,测试连接提示:Authentication using username/password requires SSL to be enabled

解决方案

此问题是由于presto的限制,连接填写了密码,presto就认为是有配置帐号密码了,这时候为了安全就走SSL认证,但是实际presto没有设置SSL认证,所以出现报错·。具体说明可以参考presto的官方文档:https://prestodb.io/docs/current/security/internal-communication.html
若presto没有设置SSL认证,或者使用产品的跨库联合数据源(产品默认是没有SSL认证),只需填写用户名,不需要填写密码。

注:如果是有帐号密码的,已经开启了SSL,如果没有密码,则是没有开启SSL。


特殊情况

presto的连接字符串中需要指定某些参数才能连接成功,例如

jdbc:presto://t-10-10-35-15:8443?SSL=true&SSLKeyStorePath=/opt/ads.keystore&SSLKeyStorePassword=manager

参数说明:

  • SSLKeyStorePath:带帐号密码认证的presto,需要开启ssl加密,所以需要配置keystore证书。此证书需要在所有的 Smartbi 服务器节点配置。(有些presto会用SSLTrustStorePath代替SSLKeyStorePath
  • SSLKeyStorePassword:创建keystore证书时配置的密码,需要和keystore证书保持一致。

presto的帐号密码:zhangsan/123456



Viewtracker License Missing

There is a problem with the license of the Viewtracker addon. Please check if you have a valid license.

授权码细节