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 個月前檢視次數 30 次
1 個回答
0

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

profile picture
專家
已回答 5 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南