This is an automated email from the ASF dual-hosted git repository.
zhangbutao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hive.git
The following commit(s) were added to refs/heads/master by this push:
new 93c765df027 HIVE-29092: NoClassDefFoundError: io/netty/util/NetUtil
when using hive jdbc standalone jar (#5981)
93c765df027 is described below
commit 93c765df0272523d5d70614b8ff422f1f2f2168a
Author: Butao Zhang <[email protected]>
AuthorDate: Fri Jul 18 23:50:02 2025 +0800
HIVE-29092: NoClassDefFoundError: io/netty/util/NetUtil when using hive
jdbc standalone jar (#5981)
---
jdbc/pom.xml | 20 +++++++++++++++++++-
1 file changed, 19 insertions(+), 1 deletion(-)
diff --git a/jdbc/pom.xml b/jdbc/pom.xml
index 94f89335fc1..86e1e5f6295 100644
--- a/jdbc/pom.xml
+++ b/jdbc/pom.xml
@@ -265,6 +265,13 @@
<include>org/apache/hadoop/yarn/api/records/ApplicationId.class</include>
</includes>
</filter>
+ <filter>
+ <artifact>io.netty:netty-common</artifact>
+ <includes>
+ <include>io/netty/util/*</include>
+ <include>io/netty/util/internal/**</include>
+ </includes>
+ </filter>
<filter>
<artifact>*:*</artifact>
<excludes>
@@ -328,7 +335,14 @@
<exclude>dnsjava:*</exclude>
<exclude>io.airlift:*</exclude>
<exclude>io.dropwizard.metrics:*</exclude>
- <exclude>io.netty:*</exclude>
+ <exclude>io.netty:netty-handler</exclude>
+ <exclude>io.netty:netty-resolver</exclude>
+ <exclude>io.netty:netty-buffer</exclude>
+ <exclude>io.netty:netty-transport</exclude>
+
<exclude>io.netty:netty-transport-native-unix-common</exclude>
+ <exclude>io.netty:netty-codec</exclude>
+ <exclude>io.netty:netty-transport-native-epoll</exclude>
+ <exclude>io.netty:netty-transport-classes-epoll</exclude>
<exclude>javax.activation:*</exclude>
<exclude>javax.inject:*</exclude>
<exclude>javax.jdo:*</exclude>
@@ -453,6 +467,10 @@
<pattern>org.codehaus.stax2</pattern>
<shadedPattern>org.apache.hive.org.codehaus.stax2</shadedPattern>
</relocation>
+ <relocation>
+ <pattern>io.netty</pattern>
+ <shadedPattern>org.apache.hive.io.netty</shadedPattern>
+ </relocation>
</relocations>
</configuration>
</execution>