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

Add support for Hive table backup in DISTCP mode #152

Closed
skeni-cld opened this issue Nov 4, 2024 · 1 comment
Closed

Add support for Hive table backup in DISTCP mode #152

skeni-cld opened this issue Nov 4, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@skeni-cld
Copy link

When we execute hms-mirror in DISTCP mode, it generate SQL which directly execute "alter table" statement on existing table to change location from "hdfs" to ozone" for e.g.

ALTER TABLE table_name SET LOCATION "ofs://...";

We request a feature to provision for existing table backup and create new table with same name pointing to ozone. Same process is seen SQL mode

Request to add below

  1. Backup existing table using "alter table rename to" statement
  2. create a new table pointing to ozone with same name
@dstreev dstreev self-assigned this Nov 6, 2024
@dstreev dstreev added the enhancement New feature or request label Nov 6, 2024
@dstreev dstreev added this to the 2.2.0.18 milestone Nov 6, 2024
@dstreev
Copy link
Collaborator

dstreev commented Nov 6, 2024

Added flag in Storage Migration called createArchive. Valid only for STORAGE_MIGRATION when distcp is used. Will work for NON-ACID tables.

ACID tables will require SQL to retain an archive.

dstreev added a commit to dstreev/hms-mirror that referenced this issue Nov 6, 2024
…ng in 1.6.x: cloudera-labs/hms-mirror#156

- Partition auto-discovery config value is misconfigured during setup: cloudera-labs/hms-mirror#155
- Enhancement for hms-mirror setup: cloudera-labs/hms-mirror#154
- Remove automatic DB location as db_name.db in db location: cloudera-labs/hms-mirror#153
- Add support for Hive table backup in DISTCP mode: cloudera-labs/hms-mirror#152

- Beta Flag to be used for future beta features.
@dstreev dstreev closed this as completed Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants