sreejasahithi opened a new pull request, #10409: URL: https://github.com/apache/ozone/pull/10409
## What changes were proposed in this pull request? This patch adds a CLI command which is supposed to load the table by the provided path and trigger RewriteTablePathOzoneAction for the path rewrite to take place. The CLI accepts the table location (location of latest metadata file in the table), source and target prefixes, and optional parameters like staging location, start/end versions etc... ## What is the link to the Apache JIRA [HDDS-14946](https://issues.apache.org/jira/browse/HDDS-14946) ## How was this patch tested? Updated existing tests Green CI : https://github.com/sreejasahithi/ozone/actions/runs/26763177832 manually tested over docker cluster(by manually loading Iceberg table into ozone): ``` bash-5.1$ ozone-iceberg rewrite-path \ --table-location "ofs://om:9862/vol1/buck1/my_db/test_table/metadata/00003-cdf55b43-4632-43c2-8c9e-350e1ee2855c.metadata.json" \ --source-prefix "ofs://om:9862/vol1/buck1/my_db/test_table" \ --target-prefix "s3://buck1link/my_db/test_table" Starting Iceberg table path rewrite Table location: ofs://om:9862/vol1/buck1/my_db/test_table/metadata/00003-cdf55b43-4632-43c2-8c9e-350e1ee2855c.metadata.json Source prefix: ofs://om:9862/vol1/buck1/my_db/test_table Target prefix: s3://buck1link/my_db/test_table Table loaded: ofs://om:9862/vol1/buck1/my_db/test_table Rewrite completed successfully Latest version: 00003-cdf55b43-4632-43c2-8c9e-350e1ee2855c.metadata.json Staging location: ofs://om:9862/vol1/buck1/my_db/test_table/metadata/copy-table-staging-426cb65f-895e-4f8d-bf51-ce53bb69fb9f/ Next step: Copy files from source to target using the file list File list location: ofs://om:9862/vol1/buck1/my_db/test_table/metadata/copy-table-staging-426cb65f-895e-4f8d-bf51-ce53bb69fb9f/file-list ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
