luffyd commented on issue #1866:
URL: https://github.com/apache/hudi/issues/1866#issuecomment-668667895


   Please resolve this, Cleans are happening fine.
   
   I also added, I think it comes at the expense of timeline feature. We will 
relax it later
   `
   val compactionConfig = HoodieCompactionConfig.newBuilder()
         .withCleanerPolicy(HoodieCleaningPolicy.KEEP_LATEST_FILE_VERSIONS)
         .retainFileVersions(1)
         .build()
       val writerConfig = HoodieWriteConfig.newBuilder()
         .withCompactionConfig(compactionConfig)
         .withPath(getHudiPath(spark))
         .build()
       val writeClient = new HoodieWriteClient(spark.sparkContext, writerConfig)
   
       // Run cleaner
       val cleanStats = writeClient.clean()
   `
   
   
   


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

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to