Skip to content

Commit

Permalink
fix: typo in container Dockerfile, correct statefulset for pg backend (
Browse files Browse the repository at this point in the history
  • Loading branch information
alee-x authored Apr 16, 2024
1 parent 92f8ffa commit fac4c59
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 9 deletions.
2 changes: 1 addition & 1 deletion charts/hive/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ spec:
value: "postgres"
{{- end }}
- name: METASTORE_DB_PORT
value: {{ .Values.metastoreDb.port }}
value: "{{ .Values.metastoreDb.port }}"
{{- with .Values.env }}
{{- . | toYaml | nindent 12 }}
{{- end }}
Expand Down
20 changes: 15 additions & 5 deletions charts/hive/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,22 @@ spec:
image: "{{.Values.image.repository}}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
env:
{{- if .Values.mysql.enabled }}
- name: METASTORE_DB_HOSTNAME
{{- if index .Values "postgresql-ha.overrideAddress" }}
value: {{ index .Values "postgresql-ha.overrideAddress" }}
{{- else }}
value: {{ .Release.Name }}-postgresql-ha-pgpool
{{- end }}
value: {{ .Release.Name }}-{{ .Values.metastoreDb.hostname }}
- name: METASTORE_DB_TYPE
value: "mysql"
{{- else }}
- name: METASTORE_DB_HOSTNAME
value: {{ .Values.metastoreDb.hostname }}
- name: METASTORE_DB_TYPE
value: "postgres"
{{- end }}
- name: METASTORE_DB_PORT
value: "{{ .Values.metastoreDb.port }}"
{{- with .Values.env }}
{{- . | toYaml | nindent 12 }}
{{- end }}
ports:
- name: tcp
containerPort: 9083
Expand Down
4 changes: 2 additions & 2 deletions charts/hive/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,12 @@ mysql:
enabled: true
architecture: replication
auth:
rootPassword: 'P4ssW0rd!1'
# rootPassword: 'P4ssW0rd!1'
createDatabase: true
database: metastore_db
username: hive
password: 'H1v3P4ssW0rd!1'
replicationPassword: 'R3pl1c4t1onP4ssW0rd!1'
# replicationPassword: 'R3pl1c4t1onP4ssW0rd!1'

secondary:
replicaCount: 2
Expand Down
2 changes: 1 addition & 1 deletion containers/hive/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ RUN addgroup --system hive --gid=1000 && \
USER hive
EXPOSE 9083

ENTRYPOINT ["sh", "-c", "/entrypoint.sh"]
ENTRYPOINT ["sh", "-c", "/entrypoint.sh"]

0 comments on commit fac4c59

Please sign in to comment.