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]: Can not find external table location #3370

Open
2 tasks done
200947912 opened this issue Dec 17, 2024 · 0 comments
Open
2 tasks done

[Bug]: Can not find external table location #3370

200947912 opened this issue Dec 17, 2024 · 0 comments
Labels
type:bug Something isn't working

Comments

@200947912
Copy link

200947912 commented Dec 17, 2024

What happened?

I created external tables using Spark SQL, the path pointed to by the upgraded Hive's configuration item "base.hive.location-root" was not the correct storage path for the external tables. Instead, it used the path composed of the storage path of the database and the table name, while the expected result should point to the actual storage path of the external tables.

create table command:
create table test_db.test_table(a string,b string) partitioned by(dt string) stored as parquet location '/user/hadoop_user/data'

The configuration item "base.hive.location-root" displayed in the WebUI is "hdfs:///user/hive/test_db.db/test_table/hive" at this time.

Affects Versions

master/0.7.1

What table formats are you seeing the problem on?

Mixed-Hive

What engines are you seeing the problem on?

Flink, Spark

How to reproduce

1.create table using Spark and specify external location.
2.upgrade hive table to Mixed-Hive table by webUI.

Relevant log output

No response

Anything else

No response

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!

Code of Conduct

  • I agree to follow this project's Code of Conduct
@200947912 200947912 added the type:bug Something isn't working label Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant