Skip to content

Commit bb66a58

Browse files
committed
KYUUBI_SESSION_CONNECTION_URL_KEY
1 parent 22d4539 commit bb66a58

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

kyuubi-server/src/main/scala/org/apache/kyuubi/session/KyuubiSessionManager.scala

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import com.google.common.annotations.VisibleForTesting
2727
import org.apache.kyuubi.KyuubiSQLException
2828
import org.apache.kyuubi.client.api.v1.dto.{Batch, BatchRequest}
2929
import org.apache.kyuubi.client.util.BatchUtils.KYUUBI_BATCH_ID_KEY
30-
import org.apache.kyuubi.config.KyuubiConf
30+
import org.apache.kyuubi.config.{KyuubiConf, KyuubiReservedKeys}
3131
import org.apache.kyuubi.config.KyuubiConf._
3232
import org.apache.kyuubi.config.KyuubiReservedKeys.{KYUUBI_BATCH_PRIORITY, KYUUBI_SESSION_REAL_USER_KEY}
3333
import org.apache.kyuubi.credentials.HadoopCredentialsManager
@@ -316,7 +316,8 @@ class KyuubiSessionManager private (name: String) extends SessionManager(name) {
316316
metadata.username,
317317
"anonymous",
318318
metadata.ipAddress,
319-
metadata.requestConf,
319+
metadata.requestConf ++
320+
Map(KyuubiReservedKeys.KYUUBI_SESSION_CONNECTION_URL_KEY -> kyuubiInstance),
320321
metadata.engineType,
321322
Option(metadata.requestName),
322323
metadata.resource,
@@ -347,7 +348,8 @@ class KyuubiSessionManager private (name: String) extends SessionManager(name) {
347348
metadata.username,
348349
"anonymous",
349350
metadata.ipAddress,
350-
metadata.requestConf,
351+
metadata.requestConf ++
352+
Map(KyuubiReservedKeys.KYUUBI_SESSION_CONNECTION_URL_KEY -> kyuubiInstance),
351353
metadata.engineType,
352354
Option(metadata.requestName),
353355
metadata.resource,

0 commit comments

Comments
 (0)