场景1:Cause: java.sql.SQLException: Authentication failed: Basic authentication or X-Presto-User must be sent
使用腾讯云的presto并且使用trino驱动时必须设置账号密码 但是presto是内网没有配置账号密码 这时候会出现问题
场景2: Failed to obtain JDBC Connection; nested exception is java.sql.SQLException: Authentication using username/password requires SSL to be enabled
如果配置一个不存在的密码会报异常
解决方案:
使用 io.trino.jdbc.TrinoDriver驱动会出现问题,但使用io.prestosql.jdbc.PrestoDriver 驱动就可以了,按照兼容性来说,同时配置2种驱动按照环境信息选择合适的驱动。