File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ All notable changes to this project will be documented in this file.
2626- spark: Add ` 4.1.2 ` ([ #1550 ] ).
2727- opensearch: Add ` 3.6.0 ` ([ #1549 ] ).
2828- opensearch-dashboards: Add ` 3.6.0 ` ([ #1551 ] ).
29+ - spark: Add hbase-connector protobuf classes ([ #1573 ] ).
2930
3031### Changed
3132
@@ -42,6 +43,7 @@ All notable changes to this project will be documented in this file.
4243- hive: Bump ` 4.2.0 ` to Hadoop ` 3.4.3 ` ([ #1539 ] ).
4344- java-devel: Bump Maven to 3.9.16 ([ #1548 ] ).
4445- spark: fix graceful shutdown at SIGTERM ([ #1564 ] )
46+ - spark-k8s/hbase-connectors: bump hbase to 2.6.6 ([ #1573 ] ).
4547
4648### Fixed
4749
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ containerfile = "Dockerfile.3"
99"hadoop/hadoop" = " 3.4.3"
1010java-base = " 17"
1111java-devel = " 17"
12- hbase = " 2.6.4 "
12+ hbase = " 2.6.6 "
1313"spark-k8s/hbase-connectors" = " 1.0.1_3.5.8"
1414
1515[versions ."3 .5 .8" .build-arguments ]
Original file line number Diff line number Diff line change @@ -54,6 +54,9 @@ ARG PRODUCT_VERSION
5454ARG RELEASE_VERSION
5555ARG HADOOP_VERSION
5656ARG HBASE_VERSION
57+ ARG HBASE_THIRDPARTY_VERSION
58+ ARG PROTOBUF_VERSION
59+ ARG PROTOBUF_PLUGIN_VERSION
5760ARG STACKABLE_USER_UID
5861
5962# Patch the hbase-connectors source code
@@ -107,12 +110,18 @@ mvn \
107110 --define scala.binary.version="${SCALA_BINARY_VERSION}" \
108111 --define hadoop-three.version="${HADOOP_VERSION}" \
109112 --define hbase.version="${HBASE_VERSION}" \
113+ --define hbase-thirdparty.version="${HBASE_THIRDPARTY_VERSION}" \
114+ --define external.protobuf.version="${PROTOBUF_VERSION}" \
115+ --define protobuf.plugin.version="${PROTOBUF_PLUGIN_VERSION}" \
110116 --define skipTests \
111117 --define maven.test.skip=true \
112118 clean package
113119
114120
115121cp "$(pwd)/hbase-spark/target/hbase-spark-${NEW_VERSION}.jar" /stackable/spark/jars/hbase-spark-${NEW_VERSION}.jar
122+ # The hbase-spark JAR is a plain module JAR and does not bundle its
123+ # dependencies. The generated protobuf classes live here.
124+ cp "$(pwd)/hbase-spark-protocol-shaded/target/hbase-spark-protocol-shaded-${NEW_VERSION}.jar" /stackable/spark/jars/hbase-spark-protocol-shaded-${NEW_VERSION}.jar
116125
117126chmod g=u /stackable/hbase-connector-${NEW_VERSION}-src.tar.gz .
118127EOF
Original file line number Diff line number Diff line change @@ -5,4 +5,12 @@ java-devel = "17"
55spark-version = " 3.5.8"
66# TODO: Bump to 3.4.3. Note that this causes compilation errors that need to be fixed.
77hadoop-version = " 3.4.2"
8- hbase-version = " 2.6.3"
8+ hbase-version = " 2.6.6"
9+ # The following three must match the hbase-thirdparty (and its bundled protobuf)
10+ # shipped by the hbase-shaded-client in the final Spark image. That client comes
11+ # from the `hbase` local-image in spark-k8s/boil-config.toml (currently 2.6.6),
12+ # whose hbase-thirdparty is 4.1.13 -> protobuf 4.34.0. Keep these in sync if the
13+ # Spark image's HBASE_VERSION changes.
14+ hbase-thirdparty-version = " 4.1.13"
15+ protobuf-version = " 4.34.0"
16+ protobuf-plugin-version = " 0.6.1"
You can’t perform that action at this time.
0 commit comments