IMPALA-14504: Use shaded hbase, protobuf from Hadoop

Switches to shaded Hbase so it can include its own versions of
dependencies. Note that hbase-client includes hbase-common,
hbase-protocol.

Excludes older protobuf-java from mysql-connector so we get it from
Hadoop.

Allows orc-format 1.0, which is a dependency in future ORC releases.

Change-Id: I386d03c3123ce1159abc54c505f60e0ae619f5fe
Reviewed-on: http://gerrit.cloudera.org:8080/23553
Reviewed-by: Joe McDonnell <joemcdonnell@cloudera.com>
Reviewed-by: Riza Suminto <riza.suminto@cloudera.com>
Tested-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com>
This commit is contained in:
Michael Smith
2025-10-14 11:58:21 -07:00
committed by Impala Public Jenkins
parent 69813a8c40
commit 7fb986e47a
2 changed files with 9 additions and 13 deletions

View File

@@ -200,12 +200,6 @@ under the License.
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.hbase</groupId>
<artifactId>hbase-protocol</artifactId>
<version>${hbase.version}</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
@@ -239,6 +233,12 @@ under the License.
<groupId>com.mysql</groupId>
<artifactId>mysql-connector-j</artifactId>
<version>8.2.0</version>
<exclusions>
<exclusion>
<groupId>com.google.protobuf</groupId>
<artifactId>protobuf-java</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
@@ -852,6 +852,8 @@ under the License.
<include>org.apache.parquet:*:${parquet.version}</include>
<include>org.apache.orc:*:${orc.version}</include>
<include>org.apache.ozone:*:${ozone.version}</include>
<!-- orc-format does not match orc version -->
<include>org.apache.orc:orc-format:1.0</include>
</includes>
</bannedDependencies>
</rules>

View File

@@ -118,13 +118,7 @@ under the License.
<dependency>
<groupId>org.apache.hbase</groupId>
<artifactId>hbase-client</artifactId>
<version>${hbase.version}</version>
</dependency>
<dependency>
<groupId>org.apache.hbase</groupId>
<artifactId>hbase-common</artifactId>
<artifactId>hbase-shaded-client-byo-hadoop</artifactId>
<version>${hbase.version}</version>
</dependency>