Athena JDBC 报驱动程序未找到异常!

0

【以下的问题经过翻译处理】 驱动版本:2.0.35。我从Amazon链接下载(其中一个包含AWS SDK)。 报错:Exception in thread "main" java.lang.RuntimeException: java.sql.SQLException: No suitable driver found for jdbc:awsathena://AwsRegion=us-east-1; at org.example.AthenaQueryRun.init(AthenaQueryRun.java:21) at org.example.AthenaQueryRun.main(AthenaQueryRun.java:11) Caused by: java.sql.SQLException: No suitable driver found for jdbc:awsathena://AwsRegion=us-east-1; at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:702) at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:189) at org.example.AthenaConnection.init(AthenaConnection.java:35) at org.example.AthenaQueryRun.init(AthenaQueryRun.java:17) ... 1 more

我的环境:JDK corretto-11

profile picture
专家
已提问 5 个月前26 查看次数
1 回答
0

【以下的回答经过翻译处理】 请查看此文档。示例: CustomSessionCredentialsProvider 如果您仍然遇到上述示例的问题,请提交支持工单,我们可以在屏幕共享中共同讨论在您的本地环境中出现的问题。

profile picture
专家
已回答 5 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则