Skip to content

Commit 9bc0aa6

Browse files
committed
[KYUUBI #886][FOLLOWUP] Support to reload hadoop conf for KyuubiTHttpFrontendService
### _Why are the changes needed?_ Support to reload hadoop conf for KyuubiTHttpFrontendService. See details in #2742 ### _How was this patch tested?_ - [ ] Add some test cases that check the changes thoroughly including negative and positive cases if possible - [ ] Add screenshots for manual tests if appropriate - [x] [Run test](https://kyuubi.apache.org/docs/latest/develop_tools/testing.html#running-tests) locally before make a pull request Closes #2899 from turboFei/http_followup. Closes #886 c480aa2 [Fei Wang] [KYUUBI #886][FOLLOWUP] Support to reload hadoop conf for KyuubiTHttpFrontendService Authored-by: Fei Wang <fwang12@ebay.com> Signed-off-by: Fei Wang <fwang12@ebay.com>
1 parent 7460e74 commit 9bc0aa6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

kyuubi-server/src/main/scala/org/apache/kyuubi/server/KyuubiTHttpFrontendService.scala

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import javax.security.sasl.AuthenticationException
2323
import javax.servlet.{ServletContextEvent, ServletContextListener}
2424

2525
import org.apache.commons.lang3.SystemUtils
26+
import org.apache.hadoop.conf.Configuration
2627
import org.apache.hive.service.rpc.thrift.{TCLIService, TOpenSessionReq}
2728
import org.apache.thrift.protocol.TBinaryProtocol
2829
import org.eclipse.jetty.http.HttpMethod
@@ -62,6 +63,8 @@ final class KyuubiTHttpFrontendService(
6263
private var server: Option[Server] = None
6364
private val APPLICATION_THRIFT = "application/x-thrift"
6465

66+
override protected def hadoopConf: Configuration = KyuubiServer.getHadoopConf()
67+
6568
/**
6669
* Configure Jetty to serve http requests. Example of a client connection URL:
6770
* http://localhost:10000/servlets/thrifths2/ A gateway may cause actual target

0 commit comments

Comments
 (0)