File tree Expand file tree Collapse file tree 3 files changed +18
-1
lines changed
kyuubi-common/src/main/scala/org/apache/kyuubi/config
kyuubi-server/src/main/scala/org/apache/kyuubi/server Expand file tree Collapse file tree 3 files changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -293,6 +293,13 @@ kyuubi\.operation<br>\.status\.polling\.max<br>\.attempts|<div style='width: 65p
293
293
kyuubi\. operation<br >\. status\. polling<br >\. timeout|<div style =' width : 65pt ;word-wrap : break-word ;white-space : normal ' >PT5S</div >|<div style =' width : 170pt ;word-wrap : break-word ;white-space : normal ' >Timeout(ms) for long polling asynchronous running sql query's status</div >|<div style =' width : 30pt ' >duration</div >|<div style =' width : 20pt ' >1.0.0</div >
294
294
295
295
296
+ ### Server
297
+
298
+ Key | Default | Meaning | Type | Since
299
+ --- | --- | --- | --- | ---
300
+ kyuubi\. server\. name|<div style =' width : 65pt ;word-wrap : break-word ;white-space : normal ' >< ; undefined> ; </div >|<div style =' width : 170pt ;word-wrap : break-word ;white-space : normal ' >The name of Kyuubi Server.</div >|<div style =' width : 30pt ' >string</div >|<div style =' width : 20pt ' >1.5.0</div >
301
+
302
+
296
303
### Session
297
304
298
305
Key | Default | Meaning | Type | Since
Original file line number Diff line number Diff line change @@ -1109,4 +1109,11 @@ object KyuubiConf {
1109
1109
.transform(_.toUpperCase(Locale .ROOT ))
1110
1110
.checkValues(OperationLanguages .values.map(_.toString))
1111
1111
.createWithDefault(OperationLanguages .SQL .toString)
1112
+
1113
+ val SERVER_NAME : OptionalConfigEntry [String ] =
1114
+ buildConf(" server.name" )
1115
+ .doc(" The name of Kyuubi Server." )
1116
+ .version(" 1.5.0" )
1117
+ .stringConf
1118
+ .createOptional
1112
1119
}
Original file line number Diff line number Diff line change @@ -89,7 +89,10 @@ object KyuubiServer extends Logging {
89
89
}
90
90
}
91
91
92
- val server = new KyuubiServer ()
92
+ val server = conf.get(KyuubiConf .SERVER_NAME ) match {
93
+ case Some (s) => new KyuubiServer (s)
94
+ case _ => new KyuubiServer ()
95
+ }
93
96
try {
94
97
server.initialize(conf)
95
98
} catch {
You can’t perform that action at this time.
0 commit comments