Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: CLI: cannot connect to Iceberg API #9408

Closed
adutra opened this issue Aug 26, 2024 · 1 comment · Fixed by #9640
Closed

[Bug]: CLI: cannot connect to Iceberg API #9408

adutra opened this issue Aug 26, 2024 · 1 comment · Fixed by #9640

Comments

@adutra
Copy link
Contributor

adutra commented Aug 26, 2024

Issue description

With Nessie CLI 0.95.0, when trying to connect to a running Nessie server configured with an AWS warehouse:

Not connected - use 'CONNECT TO' statement
Nessie> CONNECT TO http://127.0.0.1:19120/iceberg
Connecting to http://127.0.0.1:19120/iceberg ...
SLF4J(I): Connected with provider of type [ch.qos.logback.classic.spi.LogbackServiceProvider]
Encountered an error executing the following statement
    CONNECT TO http://127.0.0.1:19120/iceberg

IllegalArgumentException: Cannot initialize FileIO implementation org.apache.iceberg.aws.s3.S3FileIO: Cannot find constructor for interface org.apache.iceberg.io.FileIO
	Missing org.apache.iceberg.aws.s3.S3FileIO [java.lang.NoClassDefFoundError: software/amazon/awssdk/services/s3/model/S3Exception]
    caused by: java.lang.NoSuchMethodException: Cannot find constructor for interface org.apache.iceberg.io.FileIO
	Missing org.apache.iceberg.aws.s3.S3FileIO [java.lang.NoClassDefFoundError: software/amazon/awssdk/services/s3/model/S3Exception]

if the server is configured with GCP instead:

Not connected - use 'CONNECT TO' statement
Nessie> CONNECT TO http://127.0.0.1:19120/iceberg
Connecting to http://127.0.0.1:19120/iceberg ...
SLF4J(I): Connected with provider of type [ch.qos.logback.classic.spi.LogbackServiceProvider]
Encountered an error executing the following statement
    CONNECT TO http://127.0.0.1:19120/iceberg

IllegalArgumentException: Cannot initialize FileIO implementation org.apache.iceberg.gcp.gcs.GCSFileIO: Cannot find constructor for interface org.apache.iceberg.io.FileIO
	Missing org.apache.iceberg.gcp.gcs.GCSFileIO [java.lang.NoClassDefFoundError: com/google/auth/Credentials]
    caused by: java.lang.NoSuchMethodException: Cannot find constructor for interface org.apache.iceberg.io.FileIO
	Missing org.apache.iceberg.gcp.gcs.GCSFileIO [java.lang.NoClassDefFoundError: com/google/auth/Credentials]

Connecting to http://127.0.0.1:19120/api/v2 does not work either (same error).

@Albel-Analyst
Copy link

I have same issue rn!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants