joha0123 edited a comment 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: [email protected]

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


Reply via email to