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 2021/12/01 00:24:36 UTC

[GitHub] [hudi] rubenssoto opened a new issue #4170: [SUPPORT] Understanding Clustering Behavior

rubenssoto opened a new issue #4170:
URL: https://github.com/apache/hudi/issues/4170


   Hello Everyone,
   
   Im testing Apache Hudi clustering Behavior, my idea is to create files between 800mb and 1024mb, but clustering are creating files smaller than that.
   
   My Hudi Options:
   
   hudi_options = {
       'hoodie.table.name': 'amazon_reviews_hudi',
       'hoodie.datasource.write.recordkey.field': 'review_id',
       'hoodie.datasource.write.precombine.field': 'review_id',
       'hoodie.datasource.write.table.name': 'amazon_reviews_hudi',
       'hoodie.datasource.write.operation': 'bulk_insert',
       'hoodie.datasource.write.keygenerator.class': 'org.apache.hudi.keygen.NonpartitionedKeyGenerator',
       'hoodie.parquet.small.file.limit': '805306368',
       'hoodie.parquet.max.file.limit': '1073741824',
       'hoodie.parquet.block.size': '805306368',
       'hoodie.metadata.enable': 'true',
       "hoodie.bulk_insert.shuffle.parallelism": "30",
       "hoodie.clustering.inline": "true",
       "hoodie.clustering.inline.max.commits": "1",
       "hoodie.clustering.plan.strategy.sort.columns": "review_date,star_rating",
       "hoodie.clustering.plan.strategy.target.file.max.bytes": "1073741824",
       "hoodie.clustering.plan.strategy.small.file.limit": "805306368"
   }
   
   Hudi Version: Latest Master
   
   Dataset: s3://amazon-reviews-pds/parquet/
   
   Thank you


-- 
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] xushiyan commented on issue #4170: [SUPPORT] Understanding Clustering Behavior

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


   @li36909 @yihua can you share some insights here please?


-- 
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] nsivabalan commented on issue #4170: [SUPPORT] Understanding Clustering Behavior

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


   Hey @rubenssoto : closing this one out. Feel free to re-open if required. or reach us via slack. would be happy to assist. 


-- 
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] nsivabalan commented on issue #4170: [SUPPORT] Understanding Clustering Behavior

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


   Closing this due to inactivity. highly recommend to re-open if you are still facing issues and we can investigate further. 


-- 
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] nsivabalan commented on issue #4170: [SUPPORT] Understanding Clustering Behavior

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


   @rubenssoto : hey, any updates in this regard please. unless we get more logs, we can't help much here. 


-- 
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] h7kanna commented on issue #4170: [SUPPORT] Understanding Clustering Behavior

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


   I have 
   hoodie.parquet.max.file.size=134217728
   hoodie.parquet.small.file.limit=104857600
   hoodie.clustering.plan.strategy.target.file.max.bytes=134217728
   hoodie.clustering.plan.strategy.small.file.limit=104857600
   
   In one of the partitions I could see 176 Mb file (more than max file limit)


-- 
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] nsivabalan commented on issue #4170: [SUPPORT] Understanding Clustering Behavior

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


   @rubenssoto : If you got the issue resolved, do close it out. If you found ways to get around the issue, feel free to post it here so that others in the community can benefit. 


-- 
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] nsivabalan commented on issue #4170: [SUPPORT] Understanding Clustering Behavior

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


   @rubenssoto : Can you respond when you get a chance. 


-- 
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] nsivabalan commented on issue #4170: [SUPPORT] Understanding Clustering Behavior

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


   cc @codope 


-- 
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] nsivabalan commented on issue #4170: [SUPPORT] Understanding Clustering Behavior

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


   Closing this due to inactivity. highly recommend to re-open if you are still facing issues and we can investigate further. 


-- 
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] h7kanna edited a comment on issue #4170: [SUPPORT] Understanding Clustering Behavior

Posted by GitBox <gi...@apache.org>.
h7kanna edited a comment on issue #4170:
URL: https://github.com/apache/hudi/issues/4170#issuecomment-988979839


   I have 
   hoodie.parquet.max.file.size=134217728
   hoodie.parquet.small.file.limit=67108864
   hoodie.clustering.plan.strategy.target.file.max.bytes=134217728
   hoodie.clustering.plan.strategy.small.file.limit=67108864
   
   In one of the partitions I could see 176 Mb file (more than max file limit)


-- 
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] nsivabalan edited a comment on issue #4170: [SUPPORT] Understanding Clustering Behavior

Posted by GitBox <gi...@apache.org>.
nsivabalan edited a comment on issue #4170:
URL: https://github.com/apache/hudi/issues/4170#issuecomment-1008232146


   @rubenssoto : hey, any updates in this regard please. unless we get more logs, we can't do much here. 


-- 
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] nsivabalan closed issue #4170: [SUPPORT] Understanding Clustering Behavior

Posted by GitBox <gi...@apache.org>.
nsivabalan closed issue #4170:
URL: https://github.com/apache/hudi/issues/4170


   


-- 
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] nsivabalan closed issue #4170: [SUPPORT] Understanding Clustering Behavior

Posted by GitBox <gi...@apache.org>.
nsivabalan closed issue #4170:
URL: https://github.com/apache/hudi/issues/4170


   


-- 
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] codope commented on issue #4170: [SUPPORT] Understanding Clustering Behavior

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


   @rubenssoto Are all the files in the screenshot created due to clustering? From the screenshot, it looks like that one output file group is getting created (all fileGroupIds in the screenshot are unique) per input slice. However, from the configs the [number of output groups](https://github.com/apache/hudi/blob/68f8597b12edebba759b942f6337540f21a2db96/hudi-client/hudi-spark-client/src/main/java/org/apache/hudi/client/clustering/plan/strategy/SparkSizeBasedClusteringPlanStrategy.java#L79-L86) should have been 2.
   
   Can you paste the clustering plan in the requested replacecommit in the timeline? Or you could also share info level logs and look for:
   ```
   LOG.info("Adding one clustering group " + totalSizeSoFar + " max bytes: "
               + writeConfig.getClusteringMaxBytesInGroup() + " num input slices: " + currentGroup.size() + " output groups: " + numOutputGroups);
   
   LOG.info("Adding final clustering group " + totalSizeSoFar + " max bytes: "
             + writeConfig.getClusteringMaxBytesInGroup() + " num input slices: " + currentGroup.size() + " output groups: " + numOutputGroups);
   ```


-- 
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] nsivabalan closed issue #4170: [SUPPORT] Understanding Clustering Behavior

Posted by GitBox <gi...@apache.org>.
nsivabalan closed issue #4170:
URL: https://github.com/apache/hudi/issues/4170


   


-- 
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] nsivabalan edited a comment on issue #4170: [SUPPORT] Understanding Clustering Behavior

Posted by GitBox <gi...@apache.org>.
nsivabalan edited a comment on issue #4170:
URL: https://github.com/apache/hudi/issues/4170#issuecomment-1002288214


   Hey @rubenssoto : do you have any updates for us in this regard. Were you able to get past the issue. 


-- 
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] xushiyan edited a comment on issue #4170: [SUPPORT] Understanding Clustering Behavior

Posted by GitBox <gi...@apache.org>.
xushiyan edited a comment on issue #4170:
URL: https://github.com/apache/hudi/issues/4170#issuecomment-986185794


   @lw309637554  @yihua can you share some insights here please?


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