[
https://issues.apache.org/jira/browse/KYLIN-4656?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17163368#comment-17163368
]
Yaqian Zhang edited comment on KYLIN-4656 at 7/23/20, 9:11 AM:
---------------------------------------------------------------
I want to exclusion guava14 from kylin-shaded-guava, but I don't know why it
doesn't seem to work. I modify kylin-jdbc.pom like this:
{code:java}
<dependency>
<groupId>org.apache.kylin</groupId>
<artifactId>kylin-shaded-guava</artifactId>
<exclusions>
<exclusion>
<artifactId>com.google.guava</artifactId>
<groupId>guava</groupId>
</exclusion>
</exclusions>
<optional>true</optional>
</dependency>
{code}
was (Author: zhangyaqian):
I want to exclusion guava14 from kylin-shaded-guava, but I don't know why it
doesn't seem to work. I modify kylin-jdbc.pom like this:
{code:java}
<dependency>
<groupId>org.apache.kylin</groupId>
<artifactId>kylin-shaded-guava</artifactId>
<exclusions>
<exclusion>
<artifactId>com.google.guava</artifactId>
<groupId>guava</groupId>
</exclusion>
</exclusions>
<optional>true</optional>
</dependency>
{code}
> Guava classpath conflict caused by kylin-jdbc 3.1.0 jar
> -------------------------------------------------------
>
> Key: KYLIN-4656
> URL: https://issues.apache.org/jira/browse/KYLIN-4656
> Project: Kylin
> Issue Type: Bug
> Components: Driver - JDBC
> Affects Versions: v3.1.0
> Reporter: Gabor Arki
> Priority: Critical
> Attachments: image-2020-07-23-07-44-40-675.png
>
>
> The newly released kylin-jdbc 3.1.0 jar contains a shaded, non-repackaged
> version of the Guava library. This is causing class duplication with the
> original guava jar if it is also on the classpath which results in
> non-deterministic, runtime errors depending on which version of a certain
> guava class has been picked up by the class-loader from the 2 versions. Based
> on the runtime errors of the missing classes and methods, it seems to be a
> very old version, probably <=14.
>
> Either implement a proper shading with package relocation or rely on
> transitive dependency, but do not shade non-repackaged versions of libraries.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)