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] HiveCatalog uses LocalFileIO when hadoop configuration is loaded #2022

Closed
2 tasks done
Paddy0523 opened this issue Sep 15, 2023 · 2 comments
Closed
2 tasks done
Labels
bug Something isn't working

Comments

@Paddy0523
Copy link

Paddy0523 commented Sep 15, 2023

Search before asking

  • I searched in the issues and found nothing similar.

Paimon version

0.6-SNAPSHOT

Compute Engine

flink1.16

Minimal reproduce step

CREATE CATALOG my_catalog WITH (
'type'='paimon-generic',
'hive-conf-dir' = '/opt/Hive/hive_pkg/conf/',
'hadoop-conf-dir' = '/opt/Hadoop/hadoop_pkg/etc/hadoop/'
);

CREATE DATABASE my_catalog.paimon_test;

CREATE TABLE my_catalog.paimon_test.word_count (
word STRING PRIMARY KEY NOT ENFORCED,
cnt BIGINT
) WITH (
'connector' = 'paimon'
);

What doesn't meet your expectations?

I expected the paimon table file to be created on hdfs, but it was actually created to the local path
image

Anything else?

It seems that because of my configuration, it does not start with "hdfs: //"
image

Are you willing to submit a PR?

  • I'm willing to submit a PR!
@Paddy0523 Paddy0523 added the bug Something isn't working label Sep 15, 2023
@Paddy0523 Paddy0523 changed the title [Bug] GenericCatalog uses localFileIO when hadoop configuration is loaded [Bug] HiveCatalog uses LocalFileIO when hadoop configuration is loaded Sep 15, 2023
@andreale28
Copy link

andreale28 commented Feb 19, 2024

I am also facing quite similar problems. Although I have tried to define hive.metastore.warehouse.dir to s3://<mybucket>/, Flink still try to write the databases or tables to local file.
Have you overcome this issue yet, @Paddy0523

@JingsongLi
Copy link
Contributor

#2432 fixed this.

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

3 participants