Skip to content

Commit

Permalink
import additional jars
Browse files Browse the repository at this point in the history
  • Loading branch information
slamdev committed Nov 28, 2021
1 parent 841e011 commit 77be8d5
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 4 deletions.
2 changes: 1 addition & 1 deletion charts/hive-metastore/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: hive-metastore
description: |-
Helm chart to deploy [hive-metastore](https://hive.apache.org/).
type: application
version: 0.0.2
version: 0.0.3
appVersion: 2.3.9-2.10.1
home: https://github.com/slamdev/helm-charts/tree/master/charts/hive-metastore
icon: https://hive.apache.org/images/hive_logo_medium.jpg
Expand Down
6 changes: 4 additions & 2 deletions charts/hive-metastore/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# hive-metastore

![Version: 0.0.2](https://img.shields.io/badge/Version-0.0.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.3.9-2.10.1](https://img.shields.io/badge/AppVersion-2.3.9--2.10.1-informational?style=flat-square)
![Version: 0.0.3](https://img.shields.io/badge/Version-0.0.3-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.3.9-2.10.1](https://img.shields.io/badge/AppVersion-2.3.9--2.10.1-informational?style=flat-square)

Helm chart to deploy [hive-metastore](https://hive.apache.org/).

Expand All @@ -24,6 +24,8 @@ Helm chart to deploy [hive-metastore](https://hive.apache.org/).
| image.repository | string | `"slamdev/apache-hive"` | image repository |
| image.tag | string | `""` | image tag (chart's appVersion value will be used if not set) |
| imagePullSecrets | list | `[]` | image pull secret for private images |
| importJars.coords | list | `[]` | maven coords |
| importJars.enabled | bool | `false` | import jars as init container |
| ingress.annotations | object | `{}` | ingress annotations |
| ingress.enabled | bool | `false` | enables Ingress for hive-metastore |
| ingress.hosts | list | `[]` | ingress accepted hostnames |
Expand All @@ -34,7 +36,7 @@ Helm chart to deploy [hive-metastore](https://hive.apache.org/).
| replicaCount | int | `1` | number of replicas for flux-notifier deployment. |
| resources | object | `{}` | custom resource configuration |
| schematool.dbType | string | `"postgres"` | schematool database type |
| schematool.enabled | bool | `false` | run schematool as int container |
| schematool.enabled | bool | `false` | run schematool as init container |
| securityContext | object | `{}` | specifies security settings for a container |
| service.port | int | `9083` | service port |
| service.type | string | `"ClusterIP"` | service type |
Expand Down
24 changes: 24 additions & 0 deletions charts/hive-metastore/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,18 @@ spec:
- name: hive-configs
mountPath: /opt/hive-configs
{{- end }}
{{- if .Values.importJars.enabled }}
- name: import-jars
image: baccata/coursier:2.0.0-RC6-24
command:
- sh
args:
- -c
- coursier fetch --cache=/tmp --artifact-type=jar {{ join " " .Values.importJars.coords }} && find /tmp -name '*.jar' -exec sh -c 'cp {} /opt/hive-extra-jars/$(basename {})' \;
volumeMounts:
- name: hive-extra-jars
mountPath: /opt/hive-extra-jars
{{- end }}
containers:
- name: {{ .Chart.Name }}
securityContext:
Expand Down Expand Up @@ -84,18 +96,30 @@ spec:
env:
- name: HIVE_CONF_DIR
value: /opt/hive-configs
{{- if .Values.importJars.enabled }}
- name: HIVE_AUX_JARS_PATH
value: "$HIVE_AUX_JARS_PATH:/opt/hive-extra-jars/*"
{{- end }}
{{- with .Values.env }}
{{- toYaml . | nindent 12 }}
{{- end }}
volumeMounts:
- name: hive-configs
mountPath: /opt/hive-configs
{{- if .Values.importJars.enabled }}
- name: hive-extra-jars
mountPath: /opt/hive-extra-jars
{{- end }}
{{- with .Values.volumeMounts }}
{{- toYaml . | nindent 12 }}
{{- end }}
volumes:
- name: hive-configs
emptyDir: {}
{{- if .Values.importJars.enabled }}
- name: hive-extra-jars
emptyDir: {}
{{- end }}
- name: hive-config-map
configMap:
name: {{ include "hive-metastore.fullname" . }}
Expand Down
8 changes: 7 additions & 1 deletion charts/hive-metastore/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,13 @@ hiveSiteXml: |
</configuration>
schematool:
# schematool.enabled -- run schematool as int container
# schematool.enabled -- run schematool as init container
enabled: false
# schematool.dbType -- schematool database type
dbType: postgres
importJars:
# importJars.enabled -- import jars as init container
enabled: false
# importJars.coords -- maven coords
coords: []
# - org.apache.hadoop:hadoop-aws:2.10.1

0 comments on commit 77be8d5

Please sign in to comment.