Skip to content

Commit

Permalink
rm unrelated change
Browse files Browse the repository at this point in the history
  • Loading branch information
yaooqinn committed Dec 20, 2018
1 parent 40ac044 commit 203f615
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ import scala.language.implicitConversions

import org.apache.spark.internal.config.{ConfigBuilder, ConfigEntry}

import yaooqinn.kyuubi.service.ServiceException

/**
* Kyuubi server level configuration which will be set when at the very beginning of server start.
*
Expand All @@ -46,9 +44,6 @@ object KyuubiConf {
def apply(key: String): ConfigBuilder = ConfigBuilder(key).onCreate(register)
}

val KYUUBI_HOME: String =
sys.env.getOrElse("KYUUBI_HOME", throw new ServiceException("KYUUBI_HOME is not set!"))

/////////////////////////////////////////////////////////////////////////////////////////////////
// High Availability by ZooKeeper //
/////////////////////////////////////////////////////////////////////////////////////////////////
Expand Down Expand Up @@ -293,7 +288,9 @@ object KyuubiConf {
KyuubiConfigBuilder("spark.kyuubi.backend.session.local.dir")
.doc("Default value to set spark.local.dir")
.stringConf
.createWithDefault(KYUUBI_HOME + File.separator + "local")
.createWithDefault(
s"${sys.env.getOrElse("KYUUBI_HOME", System.getProperty("java.io.tmpdir"))}"
+ File.separator + "local")

/////////////////////////////////////////////////////////////////////////////////////////////////
// Authentication //
Expand Down

0 comments on commit 203f615

Please sign in to comment.