[ https://issues.apache.org/jira/browse/HIVE-28455?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17909602#comment-17909602 ]
Gaël Jourdan commented on HIVE-28455: ------------------------------------- I'm just finding out that there are a slim and a standalone JAR. We're using the hive-jdbc JAR published on Maven (slim then) and faced this error when upgrading from 3.1.3 to 4.0.0/4.0.1: java.lang.NoClassDefFoundError: org/apache/http/client/HttpClient at org.apache.hive.jdbc.HiveDriver.connect(HiveDriver.java:94) The published POM should have all transitive dependencies, otherwise, it's impossible to use the slim JAR. > In this case, will it be better if we have a separate module for > hive-jdbc-standalone with hive-jdbc as dependency and shading so that we can > have separate pom file for it? > As in two separate artifacts for hive-jdbc and hive-jdbc-standalone rather > than as classifier. I believe this is the way to go indeed. > Missing dependencies due to upgrade of maven-shade-plugin > --------------------------------------------------------- > > Key: HIVE-28455 > URL: https://issues.apache.org/jira/browse/HIVE-28455 > Project: Hive > Issue Type: Bug > Components: Hive > Affects Versions: 4.0.0, 4.0.0-beta-1, 4.1.0 > Reporter: Kokila N > Assignee: Kokila N > Priority: Major > > For, hive jdbc , we create two jars {{hive-jdbc}} and > {{hive-jdbc-standalone}} (shaded jar/uber jar). > *Reason for change in pom :* > Due to the changes in the maven code after version 3.2.4, when we create a > shaded jar ( {{{}hive-jdbc-standalone{}}}), {{dependency-reduced-pom.xml}} > is generated and dependencies that have been included into the uber JAR will > be removed from the {{<dependencies>}} section of the generated POM to avoid > duplication. This {{dependency-reduced-pom.xml}} is why the dependencies are > removed from the pom as its common for both {{hive-jdbc}} and > {{{}hive-jdbc-standalone{}}}. So, currently for hive-jdbc , the transitive > dependencies for it are not propagated. > Same applies to hive-beeline and hive-exec modules as well. -- This message was sent by Atlassian Jira (v8.20.10#820010)