iodone commented on PR #3185:
URL: 
https://github.com/apache/incubator-kyuubi/pull/3185#issuecomment-1217417774

   > @ulysses-you can't the current event framework achieve such a goal? with 
custom event and costume event handler?
   ```scala
   class SparkHistoryLoggingEventHandler(sc: SparkContext) extends 
EventHandler[KyuubiEvent] {
     override def apply(event: KyuubiEvent): Unit = {
       SparkContextHelper.postEventToSparkListenerBus(event, sc)
     }
   }
   ```
   
   Here's the corresponding implementation that writes a custom 
`SparkOperationKyuubiEvent` to the `SparkListenerBus`, which I think can catch 
the event by extends spark extra listener.


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to