View a markdown version of this page

Troubleshoot JDBC 4.x - Amazon Athena

Troubleshoot JDBC 4.x

The following table describes connection and result errors.

SymptomAction
Workgroup lookup failsCheck Region, WorkGroup, credentials, and athena:GetWorkGroup permission. ConnectionTest=false does not skip this lookup.
Unsupported engine or result fetcherConnect to an engine version 3 or DuckDB workgroup. Check EngineVersion and the fetcher/storage compatibility table.
Arrow buffers unavailableAdd --add-opens=java.base/java.nio=ALL-UNNAMED on Java 9 or later. Use GetQueryResults if Arrow cannot be enabled; auto can fall back for managed DuckDB results.
Conflicting credential sourcesUse CredentialsProvider=ProfileCredentials with ProfileName, or remove ProfileName when using another provider.
Class or dependency cannot be loadedAdd the with-dependencies JAR, or the lean driver JAR and runtime-dependencies JARs, to the application's classpath.
Endpoint conflict or invalid schemeSupply either a URL host or AthenaEndpoint. Use HTTPS for endpoint overrides.
Getter conversion failsCheck the DuckDB type mapping and use a supported getter or cast the value in SQL.

For driver file logs, set LogPath. Its default level is TRACE; set LogLevel to reduce detail. If the application uses SLF4J, configure its logging implementation as well.