You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by GitBox <gi...@apache.org> on 2022/04/26 09:06:41 UTC

[GitHub] [hudi] Doorwood opened a new issue, #5435: [SUPPORT] hudi mor table on Spark upsert may have "small files" problems

Doorwood opened a new issue, #5435:
URL: https://github.com/apache/hudi/issues/5435

   Hi!~When i am reading hudi code about getting small files on hoodie spark upsert,one question bothers me a lot.
   ![image](https://user-images.githubusercontent.com/23451872/165261604-773232ef-1563-43ea-ad84-3e8a970641af.png)
   If I use hoodie mor table written by spark,as long as  I update one record,it will create one log file for this fileslice to record this update operation.After this update operation,i insert a new record,it needs to find a small file to write,but the fileslice who has log files can not be treated as small file,so that hoodie may create a new filegroup to hold this record.What i want u understand,it may create a lot of small file with a lot of file groups.
   I have tested the question i described,and actually it causes "small files" problems.
   ![image](https://user-images.githubusercontent.com/23451872/165264237-ea211bd0-dc3c-464a-8ade-37827b3461c3.png)
   I am looking forward to someone can help me solve this problem!


-- 
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


[GitHub] [hudi] Doorwood closed issue #5435: [SUPPORT] hudi mor table on Spark upsert may have "small files" problems

Posted by GitBox <gi...@apache.org>.
Doorwood closed issue #5435: [SUPPORT] hudi mor table on Spark upsert may have "small files" problems
URL: https://github.com/apache/hudi/issues/5435


-- 
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


[GitHub] [hudi] yihua commented on issue #5435: [SUPPORT] hudi mor table on Spark upsert may have "small files" problems

Posted by GitBox <gi...@apache.org>.
yihua commented on issue #5435:
URL: https://github.com/apache/hudi/issues/5435#issuecomment-1110202002

   @Doorwood For MOR table, the compaction is scheduled and executed every few commits to compact the base and log files in the file slice to a new base file, so that it can be considered for file sizing optimization like small file handling and clustering later on. Here's how you can [run compaction](https://hudi.apache.org/learn/faq/#how-do-i-run-compaction-for-a-mor-dataset) for a MOR table.  After compaction, you can also run [clustering](https://hudi.apache.org/docs/file_sizing/#auto-size-with-clustering) to auto-size the data files.


-- 
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


[GitHub] [hudi] Doorwood commented on issue #5435: [SUPPORT] hudi mor table on Spark upsert may have "small files" problems

Posted by GitBox <gi...@apache.org>.
Doorwood commented on issue #5435:
URL: https://github.com/apache/hudi/issues/5435#issuecomment-1110586344

   @yihua Thanks for your reply,I haved tried your suggestions.This problem seems solved.
   
   


-- 
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