Skip to content

Commit

Permalink
try catch server initialize
Browse files Browse the repository at this point in the history
  • Loading branch information
zhenjiaguo committed Dec 1, 2021
1 parent cc40c87 commit 1ff3a82
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,13 @@ object KyuubiServer extends Logging {
}

val server = new KyuubiServer()
server.initialize(conf)
try {
server.initialize(conf)
} catch {
case e: Exception =>
error("Failed to initialize Kyuubi server", e)
System.exit(-1)
}
server.start()
Utils.addShutdownHook(() => server.stop(), Utils.SERVER_SHUTDOWN_PRIORITY)
server
Expand Down

0 comments on commit 1ff3a82

Please sign in to comment.