Bo Cui created ZOOKEEPER-4345:
---------------------------------

             Summary: Avoid NoSunchMethodException caused by shaded
                 Key: ZOOKEEPER-4345
                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-4345
             Project: ZooKeeper
          Issue Type: Improvement
            Reporter: Bo Cui
         Attachments: image-2021-08-07-17-30-42-883.png

in OS Flink, flink relocate zk to 
org.apache.flink.shaded.zookeeper3.org.apache.zookeeper.*

https://github.com/apache/flink-shaded/blob/82f8bb3324864491dc62c4d3e27f1c1ccc49ac84/flink-shaded-zookeeper-parent/pom.xml#L68

the maven-shade-plugin changes all 'org.apache.zookeeper' to 
'org.apache.flink.shaded.zookeeper3.org.apache.zookeeper'

if JVM has -Dzookeeper.clientCnxnSocket=org.apache.zookeeper.*, and in shaded 
zk jar, will get NoSunchMethodException

 

!image-2021-08-07-17-30-42-883.png!

code: 
https://github.com/apache/zookeeper/blob/9a5da5f9a023e53bf339748b5b7b17278ae36475/zookeeper-server/src/main/java/org/apache/zookeeper/ZooKeeper.java#L3029



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to