You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But when running code using IAM identification, I get the following stacktrace:
java.lang.NoClassDefFoundError: com/amazonaws/auth/AWSCredentials
at com.amazon.redshift.jdbc.RedshiftConnectionImpl.<init>(RedshiftConnectionImpl.java:284)
at com.amazon.redshift.Driver.makeConnection(Driver.java:483)
at com.amazon.redshift.Driver.connect(Driver.java:304)
The text was updated successfully, but these errors were encountered:
I'm getting a slightly different error but I think it's the same root cause:
java.lang.NoClassDefFoundError: com/amazonaws/services/redshift/AmazonRedshiftClientBuilder
at com.amazon.redshift.jdbc.RedshiftConnectionImpl.<init>(RedshiftConnectionImpl.java:287) ~[redshift-jdbc42-2.1.0.30.jar:na]
at com.amazon.redshift.Driver.makeConnection(Driver.java:483) ~[redshift-jdbc42-2.1.0.30.jar:na]
at com.amazon.redshift.Driver.connect(Driver.java:304) ~[redshift-jdbc42-2.1.0.30.jar:na]
Driver version
2.1.0.29
Redshift version
Client Operating System
Linux Ubuntu 22.04.4 LTS
JAVA/JVM version
openjdk 21.0.3 2024-04-16 LTS
OpenJDK Runtime Environment Temurin-21.0.3+9 (build 21.0.3+9-LTS)
OpenJDK 64-Bit Server VM Temurin-21.0.3+9 (build 21.0.3+9-LTS, mixed mode, sharing)
Problem description
When migrating to AWS SDK v2 following the end-of-support announcement (https://aws.amazon.com/blogs/developer/announcing-end-of-support-for-aws-sdk-for-java-v1-x-on-december-31-2025/), I noticed that the JDBC driver still requires one Java SDK v1 class when using IAM
Reproduction code
I tried to remove from my pom the following artifact
I even tried to replace it with the v2 version:
But when running code using IAM identification, I get the following stacktrace:
The text was updated successfully, but these errors were encountered: