Skip to content

Commit

Permalink
Feat: Hive supports dynamic configuration of authentication modes (#176)
Browse files Browse the repository at this point in the history
Signed-off-by: xiaojian <stdnt_xiao@163.com>
  • Loading branch information
stdnt-xiao authored and jason-ltc committed Jul 20, 2024
1 parent 74551c3 commit 72fa625
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
1 change: 1 addition & 0 deletions catalog/hive/apps/hive-server2.app/app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,4 @@ spec:
hive.server2.session.check.interval: "15m"
hive.server2.idle.session.timeout: "4h"
hive.server2.idle.operation.timeout: "2h"
hive.server2.authentication: "NOSASL"
3 changes: 1 addition & 2 deletions catalog/hive/x-definitions/app-hive-server2.cue
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,6 @@ template: {
_commonConf: {
"hive.metastore.uris": "thrift://__HMS_ADDRESS__:9083"
"hive.zookeeper.quorum": parameter.dependencies.zookeeperQuorum
"hive.server2.authentication": "NOSASL"
"hive.server2.zookeeper.namespace": "\(context.namespace)_hiveserver2/server"
"hive.server2.thrift.bind.host": "\(context.name)-__INDEX__.\(context.name).\(context.namespace).svc.cluster.local"
"hive.spark.client.rpc.server.address": "\(context.name)-__INDEX__.\(context.name).\(context.namespace).svc.cluster.local"
Expand Down Expand Up @@ -408,7 +407,6 @@ template: {
properties: {
_commonConf: {
"hive.zookeeper.quorum": parameter.dependencies.zookeeperQuorum
"hive.server2.authentication": "NOSASL"
"hive.server2.thrift.bind.host": "\(context.name)-0.\(context.name).\(context.namespace).svc.cluster.local"
}
_commonConfStr: "\n\t\(strings.Join([for k, v in _commonConf {"<property>\n\t\t<name>\(k)</name>\n\t\t<value>\(v)</value>\n\t</property>"}], "\n\t"))"
Expand Down Expand Up @@ -877,6 +875,7 @@ template: {
"hive.server2.session.check.interval": "15m"
"hive.server2.idle.session.timeout": "4h"
"hive.server2.idle.operation.timeout": "2h"
"hive.server2.authentication": "NOSASL"
} | {...}
// +ui:description=Spark 配置
// +ui:order=6
Expand Down
15 changes: 15 additions & 0 deletions catalog/hue/x-definitions/app-hue.cue
Original file line number Diff line number Diff line change
Expand Up @@ -265,8 +265,23 @@ template: {
volumeMounts: [{
mountPath: "/usr/share/hue/logs"
name: "logs"
},{
name: "hive-config"
readOnly: true
mountPath: "/usr/share/hue/desktop/conf/hive-site.xml.nosasl.template"
subPath: "hive-site.xml.nosasl.template"
}]
}]
volumes: [{
name: "hive-config"
configMap: {
name: "hive-server2-context"
"items": [{
key: "hive-site.xml"
path: "hive-site.xml.nosasl.template"
}]
}
}]
restartPolicy: "Always"
if parameter["imagePullSecrets"] != _|_ {
imagePullSecrets: [ for v in parameter.imagePullSecrets {
Expand Down

0 comments on commit 72fa625

Please sign in to comment.