hudi icon indicating copy to clipboard operation
hudi copied to clipboard

[SUPPORT] I have some questions for hudi clustering

Open shenbinglife opened this issue 5 years ago • 3 comments

  1. does the mapping of [<key,partitionpath> -> fileGroupId ] changed after clustering ? the record may wrote to another filegroup?
  2. clusting sort the columns, does it change the physical path of the record to different location which not a partition path by using inlinefs ?
  3. does clustering work on full hudi table or we can choose some partitions?
  4. why clustering ignore the file which size over the targetFileSize? if we ignore it, we should cost time for full scan this file.
  5. when some file is compacting , does clutering scheduler will ignore these files , and then clustering running will still ignore these files whatever the file is compacted ?

shenbinglife avatar Mar 10 '21 03:03 shenbinglife

cc @satishkotha @lw309637554 do you want to take this?

vinothchandar avatar Mar 10 '21 05:03 vinothchandar

  1. does the mapping of [<key,partitionpath> -> fileGroupId ] changed after clustering ? the record may wrote to another filegroup?
  2. clusting sort the columns, does it change the physical path of the record to different location which not a partition path by using inlinefs ?
  3. does clustering work on full hudi table or we can choose some partitions?
  4. why clustering ignore the file which size over the targetFileSize? if we ignore it, we should cost time for full scan this file.
  5. when some file is compacting , does clutering scheduler will ignore these files , and then clustering running will still

@shenbinglife @vinothchandar hello, i can reply it .

  1. yes, the mapping changed. Will write to another file group.
  2. clustering sort ,just make the records in a filegroup are sorted. It use spark RDDCustomColumnsSortPartitioner.
  3. Now it will work on full table. And every time will choose "hoodie.clustering.plan.strategy.daybased.lookback.partitions" num partition to clustering. You can set the param.
  4. Clustering will make small file to large file. Because with large file spark or presto can split it . Performance better.
  5. yes

lw309637554 avatar Mar 11 '21 15:03 lw309637554

Thanks a lot

shenbinglife avatar Mar 15 '21 07:03 shenbinglife