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/11/16 12:22:50 UTC

[GitHub] [hudi] joha0123 commented on issue #3941: [SUPPORT] How to access the Hudi commit statistics

joha0123 commented on issue #3941:
URL: https://github.com/apache/hudi/issues/3941#issuecomment-970219226


   Got it to work implementing the WriteCommitCallback.
   
   ```hoodie.write.commit.callback.on=true
   hoodie.write.commit.callback.class=com.example.MyWriteCommitCallback```
   
   ```
   class MyWriteCommitCallback(hoodieWriteConfig: HoodieWriteConfig) extends HoodieWriteCommitCallback {
   
     override def call(hoodieWriteCommitCallbackMessage: HoodieWriteCommitCallbackMessage): Unit = {
       val stats = hoodieWriteCommitCallbackMessage.getHoodieWriteStat
       println(stats.asScala)
     }
   }
   ```
   
   @xushiyan Thanks again for the support!


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