Skip to content

Commit 1bc2f5b

Browse files
authored
feat: Add support for Hive 4.0.0 (#508)
* feat: Add support for Hive 4.0.0 * Update docs and tests
1 parent 26ef5a6 commit 1bc2f5b

File tree

12 files changed

+27
-20
lines changed

12 files changed

+27
-20
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,18 @@ All notable changes to this project will be documented in this file.
44

55
## [Unreleased]
66

7+
### Added
8+
9+
- Add support for Hive `4.0.0` ([#508]).
10+
711
### Changed
812

913
- Reduce CRD size from `487KB` to `60KB` by accepting arbitrary YAML input instead of the underlying schema for the following fields ([#505]):
1014
- `podOverrides`
1115
- `affinity`
1216

1317
[#505]: https://github.com/stackabletech/hive-operator/pull/505
18+
[#508]: https://github.com/stackabletech/hive-operator/pull/508
1419

1520
## [24.7.0] - 2024-07-24
1621

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: 3.1.3
8+
productVersion: 4.0.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: 3.1.3
8+
productVersion: 4.0.0
99
clusterConfig:
1010
database:
1111
connString: jdbc:postgresql://postgresql:5432/hive

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ metadata:
141141
name: hive-with-drivers
142142
spec:
143143
image:
144-
productVersion: 3.1.3
144+
productVersion: 4.0.0
145145
clusterConfig:
146146
database:
147147
connString: jdbc:mysql://mysql:3306/hive # <1>
@@ -194,15 +194,15 @@ If you have access to a registry to store custom images, another approach is to
194194
.Copy the driver
195195
[source]
196196
----
197-
FROM docker.stackable.tech/stackable/hive:3.1.3-stackable0.0.0-dev
197+
FROM docker.stackable.tech/stackable/hive:4.0.0-stackable0.0.0-dev
198198
199199
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
200200
----
201201

202202
.Build and tag the image
203203
[source]
204204
----
205-
docker build -f ./Dockerfile -t docker.stackable.tech/stackable/hive:3.1.3-stackable0.0.0-dev-mysql .
205+
docker build -f ./Dockerfile -t docker.stackable.tech/stackable/hive:4.0.0-stackable0.0.0-dev-mysql .
206206
----
207207

208208
.Reference the new path to the driver without the need for using a volume mounted from a PVC
@@ -215,8 +215,8 @@ metadata:
215215
name: hive
216216
spec:
217217
image:
218-
custom: docker.stackable.tech/stackable/hive:3.1.3-stackable0.0.0-dev-mysql # <1>
219-
productVersion: 3.1.3
218+
custom: docker.stackable.tech/stackable/hive:4.0.0-stackable0.0.0-dev-mysql # <1>
219+
productVersion: 4.0.0
220220
clusterConfig:
221221
database:
222222
...

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

Lines changed: 4 additions & 4 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: 3.1.3
19+
productVersion: 4.0.0
2020
clusterConfig:
2121
database:
2222
connString: jdbc:derby:;databaseName=/tmp/metastore_db;create=true
@@ -39,7 +39,7 @@ 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 (v3.1.3) 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.0.0) cluster with derby and S3 access, deploy a minio (or use any available S3 bucket):
4343
[source,bash]
4444
----
4545
helm install minio \
@@ -66,7 +66,7 @@ metadata:
6666
name: simple-hive-derby
6767
spec:
6868
image:
69-
productVersion: 3.1.3
69+
productVersion: 4.0.0
7070
clusterConfig:
7171
database:
7272
connString: jdbc:derby:;databaseName=/stackable/metastore_db;create=true
@@ -143,7 +143,7 @@ metadata:
143143
name: simple-hive-postgres
144144
spec:
145145
image:
146-
productVersion: 3.1.3
146+
productVersion: 4.0.0
147147
clusterConfig:
148148
database:
149149
connString: jdbc:postgresql://hive-postgresql.default.svc.cluster.local:5432/hive

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
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-
- 3.1.3
5+
- 3.1.3 (LTS)
6+
- 4.0.0 (experimental)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ metadata:
1717
name: simple-hive-postgres
1818
spec:
1919
image:
20-
productVersion: 3.1.3
20+
productVersion: 4.0.0
2121
stackableVersion: 0.0.0-dev
2222
clusterConfig:
2323
database:

examples/simple-hive-cluster.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ metadata:
55
name: simple-hive-derby
66
spec:
77
image:
8-
productVersion: 3.1.3
8+
productVersion: 4.0.0
99
stackableVersion: 0.0.0-dev
1010
clusterConfig:
1111
database:

rust/crd/src/affinity.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ mod tests {
4545
name: simple-hive
4646
spec:
4747
image:
48-
productVersion: 3.1.3
48+
productVersion: 4.0.0
4949
clusterConfig:
5050
database:
5151
connString: jdbc:derby:;databaseName=/tmp/hive;create=true

tests/templates/kuttl/kerberos-s3/70-install-access-hive.yaml.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ data:
165165

166166
# S3 access
167167
try:
168-
hive_client.create_table(table(database_name, s3_test_table_name, "s3a://hive/"))
168+
hive_client.create_table(table(database_name, s3_test_table_name, "s3a://hive/s3_one_column_table/"))
169169
except AlreadyExistsException:
170170
print(f"[INFO]: Table {s3_test_table_name} already existed")
171171
print("[DEBUG]: Fetching schema")

0 commit comments

Comments
 (0)