You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kyuubi.apache.org by GitBox <gi...@apache.org> on 2022/01/19 08:08:44 UTC
[GitHub] [incubator-kyuubi] yaooqinn commented on issue #1800: [Bug] Exit spark engine if spark context is stopped
yaooqinn commented on issue #1800:
URL: https://github.com/apache/incubator-kyuubi/issues/1800#issuecomment-1016181718
have you checked the jstack to see which thread blocked termination?
BTW, we seem to have a listener to handle it
```scala
override def onApplicationEnd(event: SparkListenerApplicationEnd): Unit = {
server.getServiceState match {
case ServiceState.STOPPED =>
debug("Received ApplicationEnd Message form Spark after the engine has stopped")
case state =>
info(s"Received ApplicationEnd Message from Spark at $state, stopping")
server.stop()
}
}
```
--
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: dev-unsubscribe@kyuubi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org