pan3793 commented on code in PR #5316:
URL: https://github.com/apache/kyuubi/pull/5316#discussion_r1331383612
##########
kyuubi-server/src/main/scala/org/apache/kyuubi/engine/flink/FlinkProcessBuilder.scala:
##########
@@ -104,13 +104,23 @@ class FlinkProcessBuilder(
val userJars = conf.get(ENGINE_FLINK_APPLICATION_JARS)
userJars.foreach(jars => flinkExtraJars ++= jars.split(","))
+ val hiveOptions = env.get("HIVE_CONF_DIR")
+ if (hiveOptions.isDefined) {
+ val hiveConf = s"${hiveOptions.get}${File.separator}hive-site.xml"
+ flinkExtraJars += hiveConf
+ }
Review Comment:
nit: a style suggestion
```suggestion
val hiveConfDirOpt = env.get("HIVE_CONF_DIR")
hiveConfDirOpt.foreach { hiveConfDir =>
val hiveConf = s"${hiveConfDir}${File.separator}hive-site.xml"
flinkExtraJars += hiveConf
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]