You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by "hudi-bot (via GitHub)" <gi...@apache.org> on 2025/11/30 09:38:27 UTC

[I] The best way to force cleaning hoodie metadata [hudi]

hudi-bot opened a new issue, #16378:
URL: https://github.com/apache/hudi/issues/16378

   We have spark structured streaming job writing data to hudi tables. After an upgrade to hudi 0.11, we found that we have thousands of files under hoodie metadata which were not cleaned or archived. This impacts the overall processing of the streaming job. I found similar issue in [https://github.com/apache/hudi/issues/7472] and they mentioned this was fixed in 0.13. Since we have the issue in Prod, we will not be able to upgrade to 0.13 for now. I found that I can run sperate spark submit job to execute HoodieCleaner. I also found that deleting hudie metadata from hudi-cli could be an option but I am not sure if its safe to use that approach as we are using upsert hudi operation in the streaming job. 
   Please advise what is the best way to force cleaning and archiving the metadata files.
   
   ## JIRA info
   
   - Link: https://issues.apache.org/jira/browse/HUDI-7332
   - Type: Bug
   - Fix version(s):
     - 1.1.0


-- 
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: commits-unsubscribe@hudi.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] The best way to force cleaning hoodie metadata [hudi]

Posted by "nsivabalan (via GitHub)" <gi...@apache.org>.
nsivabalan commented on issue #16378:
URL: https://github.com/apache/hudi/issues/16378#issuecomment-4795596618

   Hi — this looks like a question against Hudi 0.11. As you noted, the related issue (#7472) was fixed via [HUDI-5434](https://issues.apache.org/jira/browse/HUDI-5434) (#7580) in 0.13, and master/1.x has accumulated many additional metadata-table cleaning and archival improvements since then (e.g. #18035, #17943, #18590). If the metadata-table bloat reproduces on a recent release (1.0.x / 1.1.0), please open a fresh issue with: Hudi version, table type (COW/MoR), `hoodie.metadata.*`, `hoodie.clean.*`, and `hoodie.*archive*` configs, the sizes/counts under `.hoodie/metadata/*/` and `.hoodie/`, and a sample timeline listing. Closing this as fixed against current master — please reopen if you can reproduce on a recent release.


-- 
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: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] The best way to force cleaning hoodie metadata [hudi]

Posted by "nsivabalan (via GitHub)" <gi...@apache.org>.
nsivabalan closed issue #16378: The best way to force cleaning hoodie metadata
URL: https://github.com/apache/hudi/issues/16378


-- 
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: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org