Skip to content

Commit c0054b3

Browse files
authored
chore: Bump hive version for 26.3.0 (#668)
* chore: Bump hive version for 26.3.0 * add PR to changelog
1 parent 48c93bd commit c0054b3

12 files changed

Lines changed: 52 additions & 39 deletions

File tree

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,18 @@ All notable changes to this project will be documented in this file.
1010
- Support objectOverrides using `.spec.objectOverrides`.
1111
See [objectOverrides concepts page](https://docs.stackable.tech/home/nightly/concepts/overrides/#object-overrides) for details ([#665]).
1212
- Enable the [restart-controller](https://docs.stackable.tech/home/nightly/commons-operator/restarter/), so that the Pods are automatically restarted on config changes ([#666]).
13+
- Add support for `4.2.0` ([#668]).
1314

1415
### Changed
1516

1617
- Bump testing-tools to `0.3.0-stackable0.0.0-dev` ([#664]).
18+
- Deprecate support for `4.1.0` ([#668]).
1719

1820
[#652]: https://github.com/stackabletech/hive-operator/pull/652
1921
[#664]: https://github.com/stackabletech/hive-operator/pull/664
2022
[#665]: https://github.com/stackabletech/hive-operator/pull/665
2123
[#666]: https://github.com/stackabletech/hive-operator/pull/666
24+
[#668]: https://github.com/stackabletech/hive-operator/pull/668
2225

2326
## [25.11.0] - 2025-11-07
2427

docs/modules/hive/examples/getting_started/hive-postgres-s3.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ metadata:
55
name: hive-postgres-s3
66
spec:
77
image:
8-
productVersion: 4.1.0
8+
productVersion: 4.2.0
99
clusterConfig:
1010
database:
1111
connString: jdbc:postgresql://postgresql:5432/hive

docs/modules/hive/examples/getting_started/hive-postgres-s3.yaml.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ metadata:
55
name: hive-postgres-s3
66
spec:
77
image:
8-
productVersion: 4.1.0
8+
productVersion: 4.2.0
99
clusterConfig:
1010
database:
1111
connString: jdbc:postgresql://postgresql:5432/hive

docs/modules/hive/pages/usage-guide/database-driver.adoc

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ spec:
7676
mountPath: /stackable/externals
7777
containers:
7878
- name: hive-driver
79-
image: oci.stackable.tech/sdp/tools:1.0.0-stackable24.3.0
79+
image: oci.stackable.tech/sdp/tools:1.0.0-stackable25.11.0
8080
env:
8181
- name: DEST_DIR
8282
value: "/stackable/externals"
@@ -114,7 +114,7 @@ spec:
114114
claimName: pvc-hive-drivers
115115
containers:
116116
- name: hive-driver
117-
image: oci.stackable.tech/sdp/tools:1.0.0-stackable24.3.0
117+
image: oci.stackable.tech/sdp/tools:1.0.0-stackable25.11.0
118118
env:
119119
- name: DEST_DIR
120120
value: "/stackable/externals"
@@ -147,7 +147,7 @@ metadata:
147147
name: hive-with-drivers
148148
spec:
149149
image:
150-
productVersion: 4.1.0
150+
productVersion: 4.2.0
151151
clusterConfig:
152152
database:
153153
connString: jdbc:mysql://mysql:3306/hive # <1>
@@ -200,15 +200,15 @@ If you have access to a registry to store custom images, another approach is to
200200
.Copy the driver
201201
[source]
202202
----
203-
FROM oci.stackable.tech/sdp/hive:4.1.0-stackable0.0.0-dev
203+
FROM oci.stackable.tech/sdp/hive:4.2.0-stackable0.0.0-dev
204204
205205
RUN curl --fail -L https://repo1.maven.org/maven2/com/mysql/mysql-connector-j/8.0.31/mysql-connector-j-8.0.31.jar -o /stackable/mysql-connector-j-8.0.31.jar
206206
----
207207

208208
.Build and tag the image
209209
[source]
210210
----
211-
docker build -f ./Dockerfile -t oci.stackable.tech/sdp/hive:4.1.0-stackable0.0.0-dev-mysql .
211+
docker build -f ./Dockerfile -t oci.stackable.tech/sdp/hive:4.2.0-stackable0.0.0-dev-mysql .
212212
----
213213

214214
.Reference the new path to the driver without the need for using a volume mounted from a PVC
@@ -221,8 +221,8 @@ metadata:
221221
name: hive
222222
spec:
223223
image:
224-
custom: oci.stackable.tech/sdp/hive:4.1.0-stackable0.0.0-dev-mysql # <1>
225-
productVersion: 4.1.0
224+
custom: oci.stackable.tech/sdp/hive:4.2.0-stackable0.0.0-dev-mysql # <1>
225+
productVersion: 4.2.0
226226
clusterConfig:
227227
database:
228228
...

docs/modules/hive/pages/usage-guide/derby-example.adoc

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ metadata:
1616
name: simple-hive-derby
1717
spec:
1818
image:
19-
productVersion: 4.1.0
19+
productVersion: 4.2.0
2020
clusterConfig:
2121
database:
2222
connString: jdbc:derby:;databaseName=/tmp/metastore_db;create=true
@@ -39,12 +39,11 @@ stringData:
3939
4040
WARNING: You should not use the `Derby` database in production. Derby stores data locally which does not work in high availability setups (multiple replicas) and all data is lost after Pod restarts.
4141
42-
To create a single node Apache Hive Metastore (v4.1.0) cluster with derby and S3 access, deploy a minio (or use any available S3 bucket):
42+
To create a single node Apache Hive Metastore (v4.2.0) cluster with derby and S3 access, deploy a minio (or use any available S3 bucket):
4343
[source,bash]
4444
----
4545
helm install minio \
46-
minio \
47-
--repo https://charts.bitnami.com/bitnami \
46+
oci://registry-1.docker.io/bitnamicharts/minio \
4847
--set image.repository=bitnamilegacy/minio \
4948
--set clientImage.repository=bitnamilegacy/minio-client \
5049
--set defaultInitContainers.volumePermissions.image.repository=bitnamilegacy/os-shell \
@@ -71,7 +70,7 @@ metadata:
7170
name: simple-hive-derby
7271
spec:
7372
image:
74-
productVersion: 4.1.0
73+
productVersion: 4.2.0
7574
clusterConfig:
7675
database:
7776
connString: jdbc:derby:;databaseName=/stackable/metastore_db;create=true
@@ -130,17 +129,17 @@ You might see an error message like this:
130129
`The authentication type 10 is not supported.`
131130
If this is the case, either use an older PostgreSQL version or change its https://www.postgresql.org/docs/current/runtime-config-connection.html#GUC-PASSWORD-ENCRYPTION[`password_encryption`] setting to `md5`.
132131

133-
This installs PostgreSQL in version 10 to work around the issue mentioned above:
132+
This installs PostgreSQL in version 12 to work around the issue mentioned above:
134133
[source,bash]
135134
----
136135
helm install hive bitnami/postgresql --version=12.1.5 \
137136
--set image.repository=bitnamilegacy/postgresql \
138137
--set volumePermissions.image.repository=bitnamilegacy/os-shell \
139138
--set metrics.image.repository=bitnamilegacy/postgres-exporter \
140139
--set global.security.allowInsecureImages=true \
141-
--set postgresqlUsername=hive \
142-
--set postgresqlPassword=hive \
143-
--set postgresqlDatabase=hive
140+
--set auth.username=hive \
141+
--set auth.password=hive \
142+
--set auth.database=hive
144143
----
145144

146145
.Create Hive Metastore using a PostgreSQL database
@@ -152,7 +151,7 @@ metadata:
152151
name: simple-hive-postgres
153152
spec:
154153
image:
155-
productVersion: 4.1.0
154+
productVersion: 4.2.0
156155
clusterConfig:
157156
database:
158157
connString: jdbc:postgresql://hive-postgresql.default.svc.cluster.local:5432/hive

docs/modules/hive/partials/supported-versions.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
// This is a separate file, since it is used by both the direct Hive-Operator documentation, and the overarching
33
// Stackable Platform documentation.
44

5-
- 4.2.0 (experimental)
6-
- 4.1.0 (experimental)
5+
- 4.2.0
6+
- 4.1.0 (deprecated)
77
- 4.0.1 (LTS)
88
- 4.0.0 (deprecated)
99
- 3.1.3 (deprecated)

examples/hive-opa-cluster.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# helm install listener-operator \
2+
# oci://oci.stackable.tech/sdp-charts/listener-operator
3+
# helm install hive-operator \
4+
# oci://oci.stackable.tech/sdp-charts/hive-operator
5+
# helm install opa-operator \
6+
# oci://oci.stackable.tech/sdp-charts/opa-operator
17
# helm install postgresql oci://registry-1.docker.io/bitnamicharts/postgresql \
28
# --version 16.5.0 \
39
# --namespace default \
@@ -17,7 +23,7 @@ metadata:
1723
name: hive
1824
spec:
1925
image:
20-
productVersion: 4.1.0
26+
productVersion: 4.2.0
2127
pullPolicy: IfNotPresent
2228
clusterConfig:
2329
authorization:

examples/simple-hive-cluster-postgres-s3.yaml

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
# helm install secret-operator \
22
# oci://oci.stackable.tech/sdp-charts/secret-operator
3+
# helm install listener-operator \
4+
# oci://oci.stackable.tech/sdp-charts/listener-operator
5+
# helm install hive-operator \
6+
# oci://oci.stackable.tech/sdp-charts/hive-operator
37
# helm install minio \
4-
# minio \
5-
# --repo https://charts.bitnami.com/bitnami \
8+
# oci://registry-1.docker.io/bitnamicharts/minio \
69
# --set image.repository=bitnamilegacy/minio \
710
# --set clientImage.repository=bitnamilegacy/minio-client \
811
# --set defaultInitContainers.volumePermissions.image.repository=bitnamilegacy/os-shell \
@@ -15,23 +18,22 @@
1518
# --set volumePermissions.image.repository=bitnamilegacy/os-shell \
1619
# --set metrics.image.repository=bitnamilegacy/postgres-exporter \
1720
# --set global.security.allowInsecureImages=true \
18-
# --set postgresqlUsername=hive \
19-
# --set postgresqlPassword=hive \
20-
# --set postgresqlDatabase=hive
21+
# --set auth.username=hive \
22+
# --set auth.password=hive \
23+
# --set auth.database=hive
2124
---
2225
apiVersion: hive.stackable.tech/v1alpha1
2326
kind: HiveCluster
2427
metadata:
2528
name: simple-hive-postgres
2629
spec:
2730
image:
28-
productVersion: 4.1.0
29-
stackableVersion: 0.0.0-dev
31+
productVersion: 4.2.0
3032
clusterConfig:
3133
database:
32-
connString: jdbc:derby:;databaseName=/tmp/hive;create=true
34+
connString: jdbc:postgresql://hive-postgresql.default.svc.cluster.local:5432/hive
3335
credentialsSecret: hive-credentials
34-
dbType: derby
36+
dbType: postgres
3537
s3:
3638
inline:
3739
host: test-minio
@@ -70,5 +72,5 @@ metadata:
7072
name: hive-credentials
7173
type: Opaque
7274
stringData:
73-
username: APP
74-
password: mine
75+
username: hive
76+
password: hive

examples/simple-hive-cluster.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
1+
# helm install listener-operator \
2+
# oci://oci.stackable.tech/sdp-charts/listener-operator
3+
# helm install hive-operator \
4+
# oci://oci.stackable.tech/sdp-charts/hive-operator
15
---
26
apiVersion: hive.stackable.tech/v1alpha1
37
kind: HiveCluster
48
metadata:
59
name: simple-hive-derby
610
spec:
711
image:
8-
productVersion: 4.1.0
9-
stackableVersion: 0.0.0-dev
12+
productVersion: 4.2.0
1013
clusterConfig:
1114
database:
1215
connString: jdbc:derby:;databaseName=/tmp/hive;create=true

rust/operator-binary/src/config/jvm.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ mod tests {
107107
name: simple-hive
108108
spec:
109109
image:
110-
productVersion: 4.1.0
110+
productVersion: 4.2.0
111111
clusterConfig:
112112
database:
113113
connString: jdbc:derby:;databaseName=/tmp/hive;create=true
@@ -142,7 +142,7 @@ mod tests {
142142
name: simple-hive
143143
spec:
144144
image:
145-
productVersion: 4.1.0
145+
productVersion: 4.2.0
146146
clusterConfig:
147147
database:
148148
connString: jdbc:derby:;databaseName=/tmp/hive;create=true

0 commit comments

Comments
 (0)