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

Validate Hive location path includes nameservice name #12

Open
randygoering opened this issue Mar 31, 2022 · 2 comments
Open

Validate Hive location path includes nameservice name #12

randygoering opened this issue Mar 31, 2022 · 2 comments

Comments

@randygoering
Copy link

Check Hive table location path is valid in HDFS.

We had a cluster that at one time had HDFS HA enabled and tables were defined with a location that included the nameservice name. When HDFS HA was disable the hive table location was not updated to reflect the correct HDFS path.
HSMM failed during migration due to some of the hive tables had incorrect hdfs location defined.

It appears that the hive-sre tool did not report that these tables had invalid hdfs locations.

@randygoering
Copy link
Author

randygoering commented Oct 21, 2022

Citi had issues with location missing hdfs://nameservice-example/data/
SDS table in metastore had a location for the table so it did not get flagged as missing but it was incorrect and caused failure in hive metadata schema validation.
Location should be looks like this:
hdfs://nameservice-example/data/...
Support Case 911529

@randygoering randygoering changed the title Validate Hive table location path Validate Hive location path includes nameservice name Oct 21, 2022
@mszurap
Copy link

mszurap commented Jul 16, 2024

For the missing nameservice id, besides validating the SDS entries (table and partition locations) the DBS table also needs to be validated.
SELECT * from SDS where LOCATION NOT LIKE 'hdfs://%' and LOCATION NOT LIKE 'har://%' ;
and
SELECT DB_ID,NAME,DB_LOCATION_URI from DBS where DB_LOCATION_URI NOT LIKE 'hdfs://%';
See also case 1057442.
Could you help with this @dstreev ?

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

No branches or pull requests

2 participants