From 07126890e53a60e7ef09c8eee195cbb863990975 Mon Sep 17 00:00:00 2001 From: liangbowen Date: Mon, 9 Oct 2023 21:33:27 +0800 Subject: [PATCH] remove lazy --- .../org/apache/kyuubi/engine/spark/SparkProcessBuilder.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kyuubi-server/src/main/scala/org/apache/kyuubi/engine/spark/SparkProcessBuilder.scala b/kyuubi-server/src/main/scala/org/apache/kyuubi/engine/spark/SparkProcessBuilder.scala index 7b92f15a50a..be3027965e5 100644 --- a/kyuubi-server/src/main/scala/org/apache/kyuubi/engine/spark/SparkProcessBuilder.scala +++ b/kyuubi-server/src/main/scala/org/apache/kyuubi/engine/spark/SparkProcessBuilder.scala @@ -337,9 +337,9 @@ object SparkProcessBuilder { final private[kyuubi] val SPARK_CORE_SCALA_VERSION_REGEX = """^spark-core_(\d\.\d+).*.jar$""".r - final private[kyuubi] lazy val SPARK_HOME_REGEX_SCALA_212 = + final private[kyuubi] val SPARK_HOME_REGEX_SCALA_212 = """^spark-\d+\.\d+\.\d+-bin-hadoop\d+(\.\d+)?$""".r - final private[kyuubi] lazy val SPARK_HOME_REGEX_SCALA_213 = + final private[kyuubi] val SPARK_HOME_REGEX_SCALA_213 = """^spark-\d+\.\d+\.\d+-bin-hadoop\d(\.\d+)?+-scala\d+(\.\d+)?$""".r }