You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@zookeeper.apache.org by "Mate Szalay-Beko (Jira)" <ji...@apache.org> on 2022/05/17 10:45:00 UTC

[jira] [Updated] (ZOOKEEPER-4345) Avoid NoSunchMethodException caused by shaded zookeeper jar

     [ https://issues.apache.org/jira/browse/ZOOKEEPER-4345?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mate Szalay-Beko updated ZOOKEEPER-4345:
----------------------------------------
    Fix Version/s: 3.5.10

> Avoid NoSunchMethodException caused by shaded zookeeper jar
> -----------------------------------------------------------
>
>                 Key: ZOOKEEPER-4345
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-4345
>             Project: ZooKeeper
>          Issue Type: Bug
>            Reporter: Bo Cui
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 3.5.10, 3.8.0, 3.7.1, 3.6.4
>
>         Attachments: image-2021-08-07-17-30-42-883.png, image-2021-08-07-18-52-00-633.png
>
>          Time Spent: 2h 50m
>  Remaining Estimate: 0h
>
> 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-18-52-00-633.png!
> !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.20.7#820007)