From 42d333de2c1edc0373c737053ff6c28b48a41cf7 Mon Sep 17 00:00:00 2001 From: ulysses-you Date: Tue, 26 Jan 2021 14:44:35 +0800 Subject: [PATCH 1/2] err msg --- .../main/scala/org/apache/kyuubi/service/FrontendService.scala | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kyuubi-common/src/main/scala/org/apache/kyuubi/service/FrontendService.scala b/kyuubi-common/src/main/scala/org/apache/kyuubi/service/FrontendService.scala index 84f0c178c00..23d7abdb3ef 100644 --- a/kyuubi-common/src/main/scala/org/apache/kyuubi/service/FrontendService.scala +++ b/kyuubi-common/src/main/scala/org/apache/kyuubi/service/FrontendService.scala @@ -99,7 +99,8 @@ class FrontendService private (name: String, be: BackendService, oomHook: Runnab s" [$minThreads, $maxThreads] worker threads") } catch { case e: Throwable => - throw new KyuubiException("Failed to initialize frontend service", e) + throw new KyuubiException("Failed to initialize frontend service, " + + s"please check this host:port $serverAddr:$portNum is available.", e) } super.initialize(conf) } From c3f5ffa3dae5d9822ae9b0d8eec879e971ccdea2 Mon Sep 17 00:00:00 2001 From: ulysses-you Date: Tue, 26 Jan 2021 18:23:40 +0800 Subject: [PATCH 2/2] fix --- .../scala/org/apache/kyuubi/service/FrontendService.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kyuubi-common/src/main/scala/org/apache/kyuubi/service/FrontendService.scala b/kyuubi-common/src/main/scala/org/apache/kyuubi/service/FrontendService.scala index 23d7abdb3ef..107f4651378 100644 --- a/kyuubi-common/src/main/scala/org/apache/kyuubi/service/FrontendService.scala +++ b/kyuubi-common/src/main/scala/org/apache/kyuubi/service/FrontendService.scala @@ -99,8 +99,8 @@ class FrontendService private (name: String, be: BackendService, oomHook: Runnab s" [$minThreads, $maxThreads] worker threads") } catch { case e: Throwable => - throw new KyuubiException("Failed to initialize frontend service, " + - s"please check this host:port $serverAddr:$portNum is available.", e) + throw new KyuubiException( + s"Failed to initialize frontend service on $serverAddr:$portNum.", e) } super.initialize(conf) }