浏览代码

[k8s] Added Hive config map so API can read hive-site.xml options

Romain Rigaux 5 年之前
父节点
当前提交
69a4f6f925

+ 14 - 0
tools/kubernetes/helm/hue/templates/configmap-hive.yaml

@@ -0,0 +1,14 @@
+apiVersion: v1
+kind: ConfigMap
+metadata:
+  name: hive-config
+data:
+  hive-site: |
+  <?xml version="1.0"?>
+  <?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
+
+  <configuration>
+
+  {{ .Values.hive.site | indent 4 | trim }}
+
+  </configuration>

+ 6 - 0
tools/kubernetes/helm/hue/templates/deployment-hue.yaml

@@ -58,6 +58,9 @@ spec:
         - name: config-volume-extra
           mountPath: /usr/share/hue/desktop/conf/zz-hue.ini
           subPath: hue-ini
+        - name: hive-config-volume
+          mountPath: /etc/hive/conf/hive-site.xml
+          subPath: hive-site
         readinessProbe:
           httpGet:
             path: /desktop/debug/is_alive
@@ -87,6 +90,9 @@ spec:
         - name: config-volume-extra
           configMap:
             name: hue-config-extra
+        - name: hive-config-volume
+          configMap:
+            name: hive-config
 {{ if .Values.balancer.enabled }}
         - name: nginx-config
           configMap:

+ 9 - 0
tools/kubernetes/helm/hue/values.yaml

@@ -63,6 +63,15 @@ aws:
   accessKeyId: ""
   secretAccessKey: ""
   awsRegion: "us-east-1"
+hive:
+  site: |
+    <!--
+    <property>
+      <name>hive.support.concurrency</name>
+      <value>false</value>
+      <description>Whether hive supports concurrency or not. A zookeeper instance must be up and running for the default hive lock manager to support read-write locks.</description>
+    </property>
+    -->
 
 ## Pod Annotations
 # podAnnotations: {}