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] Database default does not exist in Catalog #2310

Closed
2 tasks done
ngk2009 opened this issue Nov 14, 2023 · 3 comments
Closed
2 tasks done

[Bug] Database default does not exist in Catalog #2310

ngk2009 opened this issue Nov 14, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@ngk2009
Copy link

ngk2009 commented Nov 14, 2023

Search before asking

  • I searched in the issues and found nothing similar.

Paimon version

0.6

Compute Engine

Flink

Minimal reproduce step

CREATE CATALOG my_catalog WITH (
'type' = 'paimon',
'warehouse' = 's3://lakehouse/paimon',
's3.endpoint' = 'http://25.30.9.250:9200',
's3.access-key' = 'root',
's3.secret-key' = '12345678'
);
use catalog my_catalog;
CREATE TABLE word_count (
word STRING PRIMARY KEY NOT ENFORCED,
cnt BIGINT
);

What doesn't meet your expectations?

[ERROR] Could not execute SQL statement. Reason:
org.apache.flink.table.catalog.exceptions.DatabaseNotExistException: Database default does not exist in Catalog my_catalog.

Anything else?

sql-client log:
Caused by: org.apache.flink.table.catalog.exceptions.DatabaseNotExistException: Database default does not exist in Catalog my_catalog.
at org.apache.paimon.flink.FlinkCatalog.createTable(FlinkCatalog.java:312)
at org.apache.flink.table.catalog.CatalogManager.lambda$createTable$18(CatalogManager.java:957)
at org.apache.flink.table.catalog.CatalogManager.execute(CatalogManager.java:1290)
... 16 more

End of exception on server side>]
at org.apache.flink.runtime.rest.RestClient.parseResponse(RestClient.java:646) ~[flink-dist-1.18.0.jar:1.18.0]
at org.apache.flink.runtime.rest.RestClient.lambda$submitRequest$6(RestClient.java:626) ~[flink-dist-1.18.0.jar:1.18.0]
at java.util.concurrent.CompletableFuture$UniCompose.tryFire(CompletableFuture.java:1150) ~[?:?]
at java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:482) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[?:?]
at java.lang.Thread.run(Thread.java:833) ~[?:?]

Are you willing to submit a PR?

  • I'm willing to submit a PR!
@ngk2009 ngk2009 added the bug Something isn't working label Nov 14, 2023
@ngk2009
Copy link
Author

ngk2009 commented Nov 14, 2023

This problem occurs when flinks-s3-fs-presto is used, but Flinks-s3-fs-Hadoop is normal

@ngk2009
Copy link
Author

ngk2009 commented Nov 15, 2023

S3FileIO uses S3AFileSystem of Hadoop, so it cannot be used successfully. Could you consider specifically stating that s3p cannot be used in the usage instructions

@ngk2009 ngk2009 closed this as not planned Won't fix, can't repro, duplicate, stale Nov 15, 2023
@luyizhizaio
Copy link

paimon 0.8,I had the same problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants