[jira] [Created] (FLINK-8568) flink table's guava classes can't beed relocated by maven-shed-plugin.

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (FLINK-8568) flink table's guava classes can't beed relocated by maven-shed-plugin.

Shang Yuanchun (Jira)
John Fang created FLINK-8568:
--------------------------------

             Summary: flink table's guava classes can't beed relocated by maven-shed-plugin.
                 Key: FLINK-8568
                 URL: https://issues.apache.org/jira/browse/FLINK-8568
             Project: Flink
          Issue Type: Bug
          Components: Table API & SQL
    Affects Versions: 2.0.0, 1.5.0
            Reporter: John Fang
             Fix For: 2.0.0
         Attachments: exclude_guava.patch

Maven-shade-plugin only relocate java classes, but not Scala classes. I try to decompile flink-table Jar, and find those guava path not beed relocated on those Scala classes. But flink job run normally for all time. Because flink-dist_${scala.binary.version}.jar contains the google guava and flink shaded guava at the same time. Why is the google guava still contained int the flink?
Because we build flink by Maven-assembly-plugin at flink-disk module. The Assembly Plugin aggregate its all dependencies, includes those dependencies which are shaded now. If we use the following patch which exclude the Guava, then the flink-dist_${scala.binary.version}.jar only contains the flink-shaded-guava, not the google guava.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)